Java Code Examples for io.reactivex.Completable#compose()
The following examples show how to use
io.reactivex.Completable#compose() .
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 check out the related API usage on the sidebar.
Example 1
Source File: MainObserverTransformer.java From pandroid with Apache License 2.0 | 5 votes |
@Override public CompletableSource apply(Completable upstream) { Completable tObservable = upstream .observeOn(AndroidSchedulers.mainThread()); if (provider == null) { return tObservable; } return tObservable.compose(RxLifecycleDelegate.<T>bindLifecycle(provider)); }
Example 2
Source File: SimpleRequestResponseTransformer.java From My-MVP with Apache License 2.0 | 5 votes |
@Override public CompletableSource apply(Completable upstream) { if (mLifecycleTransformer != null) { upstream = upstream.compose(mLifecycleTransformer); } return upstream.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()); }
Example 3
Source File: SimpleRequestTransformer.java From My-MVP with Apache License 2.0 | 5 votes |
@Override public CompletableSource apply(Completable upstream) { if (mLifecycleTransformer != null) { upstream = upstream.compose(mLifecycleTransformer); } return upstream.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()); }