use of com.wangjiegulu.cleanandroidprojectmvp.provider.support.bridge.testable.rx.scheduler.SchedulerSelector in project CleanAndroidProject_MVP by wangjiegulu.
the class ProviderSchedulers method initialize.
public static void initialize() {
SchedulerSelector schedulerSelector = SchedulerSelector.get();
schedulerSelector.putScheduler(ProviderSchedulers.NET, () -> Schedulers.from(THREAD_POOL_EXECUTOR_NETWORK));
schedulerSelector.putScheduler(ProviderSchedulers.DB, () -> Schedulers.from(THREAD_POOL_EXECUTOR_DATABASE));
}
use of com.wangjiegulu.cleanandroidprojectmvp.provider.support.bridge.testable.rx.scheduler.SchedulerSelector in project CleanAndroidProject_MVP by wangjiegulu.
the class ProviderSchedulers method setAllSchedulers.
@VisibleForTesting
public static void setAllSchedulers(Scheduler scheduler) {
SchedulerSelector schedulerSelector = SchedulerSelector.get();
schedulerSelector.putScheduler(ProviderSchedulers.NET, () -> scheduler);
schedulerSelector.putScheduler(ProviderSchedulers.DB, () -> scheduler);
}
Aggregations