Java Code Examples for io.reactivex.schedulers.Schedulers#computation()

The following examples show how to use io.reactivex.schedulers.Schedulers#computation() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
public static Scheduler cast(ThreadMode threadMode) {
    Scheduler scheduler = null;
    switch (threadMode) {
        case COMPUTATION:
            scheduler = Schedulers.computation();
            break;
        case NEWTHREAD:
            scheduler = Schedulers.newThread();
            break;
        case MAIN:
            scheduler = AndroidSchedulers.mainThread();
            break;
        case IO:
            scheduler = Schedulers.io();
            break;
        default:
            scheduler = AndroidSchedulers.mainThread();
            break;
    }
    return scheduler;
}
 
Example 2
Source Project: Reactive-Android-Programming   File: Sandbox.java    License: MIT License 5 votes vote down vote up
private void demo0() {
    Schedulers.single();
    Schedulers.trampoline();
    Schedulers.newThread();
    Schedulers.computation();
    Schedulers.io();
    Schedulers.io();
}
 
Example 3
Source Project: Reactive-Android-Programming   File: Sandbox.java    License: MIT License 5 votes vote down vote up
private void demo0() {
    Schedulers.single();
    Schedulers.trampoline();
    Schedulers.newThread();
    Schedulers.computation();
    Schedulers.io();
    Schedulers.io();
}
 
Example 4
@NonNull
@Override
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 5
@Override
@NonNull
public Scheduler computation() {
  return Schedulers.computation();
}
 
Example 6
@NonNull
@Override
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 7
@Provides
@Singleton
@Named("compute")
public Scheduler providesComputeScheduler() {
  return Schedulers.computation();
}
 
Example 8
@Override
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 9
@Override
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 10
/**
 * Computation thread pool scheduler
 */
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 11
Source Project: AndroidGodEye   File: ThreadUtil.java    License: Apache License 2.0 4 votes vote down vote up
public static Scheduler computationScheduler() {
    if (sComputationScheduler != null) {
        return sComputationScheduler;
    }
    return Schedulers.computation();
}
 
Example 12
@Override
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 13
Source Project: Melophile   File: SchedulerProvider.java    License: Apache License 2.0 4 votes vote down vote up
@NonNull
public Scheduler computation() {
  return Schedulers.computation();
}
 
Example 14
Source Project: EosCommander   File: EoscSchedulerProvider.java    License: MIT License 4 votes vote down vote up
@Override
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 15
Source Project: iroha-android   File: ApplicationModule.java    License: Apache License 2.0 4 votes vote down vote up
@Provides
@Singleton
@Named(JOB)
public Scheduler provideJobScheduler() {
    return Schedulers.computation();
}
 
Example 16
@Override
@NonNull
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 17
Source Project: mockstar   File: SchedulerProvider.java    License: MIT License 4 votes vote down vote up
@Override
@NonNull
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 18
Source Project: News   File: SchedulerProvider.java    License: Apache License 2.0 4 votes vote down vote up
@Override
@NonNull
public Scheduler computation() {
    return Schedulers.computation();
}
 
Example 19
/**
 * Provides the computation thread Scheduler.
 *
 * @return provides the computation thread Scheduler.
 */
@Override
public Scheduler provideComputationScheduler() {
    return Schedulers.computation();
}
 
Example 20
Source Project: NYBus   File: SchedulerProviderImpl.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Provides the computation thread Scheduler.
 *
 * @return provides the computation thread Scheduler.
 */
@Override
public Scheduler provideComputationScheduler() {
    return Schedulers.computation();
}