protected Goro createGoro() { return delegateExecutor != null ? createWithDelegate(delegateExecutor) : create(); }
@Provides @Singleton public Goro goro() { return Goro.create(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GoroService.setup(this, Goro.create()); Scheduler scheduler = new RxGoro(goro).scheduler("test-queue"); Observable.just("ok") .subscribeOn(scheduler) .subscribe(new Action1<String>() { @Override public void call(String s) { result = "ok"; resultSync.countDown(); } }); Observable.error(new RuntimeException("test error")) .subscribeOn(scheduler) .subscribe(Actions.empty(), new Action1<Throwable>() { @Override public void call(Throwable throwable) { error = throwable; errorSync.countDown(); } }); }