Skip to content

Instantly share code, notes, and snippets.

@miquelbeltran
Created May 5, 2018 14:30
Show Gist options
  • Select an option

  • Save miquelbeltran/aec73df3f2511a98c0ec51e4cc9a44b4 to your computer and use it in GitHub Desktop.

Select an option

Save miquelbeltran/aec73df3f2511a98c0ec51e4cc9a44b4 to your computer and use it in GitHub Desktop.
fun <T> Single<T>.toV1(): rx.Single<T> = RxJavaInterop.toV1Single(this)
fun <T> Single<T>.toV1Observable(): rx.Observable<T> = RxJavaInterop.toV1Single(this).toObservable()
fun <T> Observable<T>.toV1(): rx.Observable<T> = RxJavaInterop.toV1Observable(this, BackpressureStrategy.BUFFER)
fun Completable.toV1(): rx.Completable = RxJavaInterop.toV1Completable(this)
fun <T> rx.Observable<T>.toV2(): io.reactivex.Observable<T> = RxJavaInterop.toV2Observable(this)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment