本文整理汇总了Java中io.reactivex.schedulers.Schedulers.io方法的典型用法代码示例。如果您正苦于以下问题:Java Schedulers.io方法的具体用法?Java Schedulers.io怎么用?Java Schedulers.io使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类io.reactivex.schedulers.Schedulers
的用法示例。
在下文中一共展示了Schedulers.io方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: provideGetCurrenciesUseCase
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Provides
@CurrenciesActivityScope
@Override
public GetCurrenciesUseCase provideGetCurrenciesUseCase(final CurrencyRepository currencyRepository,
final PreferencesData preferencesData) {
return new GetCurrenciesUseCase(Schedulers.io(), AndroidSchedulers.mainThread(),
currencyRepository,
preferencesData);
}
示例2: demo0
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
private void demo0() {
Schedulers.single();
Schedulers.trampoline();
Schedulers.newThread();
Schedulers.computation();
Schedulers.io();
Schedulers.io();
}
示例3: io
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Override
public Scheduler io() {
return Schedulers.io();
}
示例4: io
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Override
@NonNull
public Scheduler io() {
return Schedulers.io();
}
示例5: provideIoScheduler
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Provides @Singleton @Named(Rx.IO) Scheduler provideIoScheduler() {
return Schedulers.io();
}
示例6: io
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@NonNull
@Override
public Scheduler io() {
return Schedulers.io();
}
示例7: setUp
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
useCase = new TimezoneGetUseCase(Schedulers.io(), Schedulers.io(), restService, authService);
}
示例8: io
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
public Scheduler io() {
return Schedulers.io();
}
示例9: ioScheduler
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Provides @Singleton @IOScheduler static Scheduler ioScheduler() {
return Schedulers.io();
}
示例10: providesRxSchedulers
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Provides
@Singleton
RxSchedulers providesRxSchedulers() {
return new RxSchedulers(Schedulers.io(), Schedulers.computation(), Schedulers.trampoline(),
AndroidSchedulers.mainThread());
}
示例11: io
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Override
public Scheduler io() {
return Schedulers.io();
}
示例12: IOAccessorFactory
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Inject IOAccessorFactory(@ServerScheduler Scheduler syncScheduler, Provider<Injector> injector) {
super(syncScheduler, Schedulers.io(), injector);
}
示例13: provideGetCurrenciesRatesDate
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
@Provides
@CurrenciesActivityScope
@Override
public GetCurrenciesRatesDate provideGetCurrenciesRatesDate(final PreferencesData preferencesData) {
return new GetCurrenciesRatesDate(Schedulers.io(), AndroidSchedulers.mainThread(), preferencesData);
}
示例14: with
import io.reactivex.schedulers.Schedulers; //导入方法依赖的package包/类
/**
* Open the main {@link Book} running its operations on {@link Schedulers#io()}.
* <p/>
* Requires calling {@link RxPaperBook#init(Context)} at least once beforehand.
*
* @return new RxPaperBook
*/
public static RxPaperBook with() {
assertInitialized();
return new RxPaperBook(Schedulers.io());
}