Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public operator fun CompositeDisposable.plusAssign(d: Disposable) { add(d) }
  2.  
  3. public Observable<T>.async(): Observable<T> = this.subscribeOn(Schedulers.io())
  4. .observeOn(AndroidSchedulers.mainThread())
  5.  
  6. public Single<T>.async(): Single<T> = this.subscribeOn(Schedulers.io())
  7. .observeOn(AndroidSchedulers.mainThread())
  8.  
  9. public Maybe<T>.async(): Maybe<T> = this.subscribeOn(Schedulers.io())
  10. .observeOn(AndroidSchedulers.mainThread())
  11.  
  12. public Completable.async(): Completable = this.subscribeOn(Schedulers.io())
  13. .observeOn(AndroidSchedulers.mainThread())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement