APISonar


com.vpaliy.domain.executor.BaseSchedulerProvider.ui

> com > vpaliy > domain > executor > BaseSchedulerProvider > ui
com APIs vpaliy APIs domain APIs executor APIs BaseSchedulerProvider APIs ui APIs

Example 1
protected BaseSchedulerProvider schedulerProvider;

  public void execute(Consumer<? super T> onSuccess, Consumer<? super Throwable> onError, Params params) {
    Single<T> single = buildUseCase(params);
    if (single != null) {
      single = single.subscribeOn(schedulerProvider.io())
              .observeOn(schedulerProvider.ui());
      disposables.add(single.subscribe(onSuccess, onError));
    }
  }