tree: 61f48bf5128ad0af501b5bbf5f83460d09995d07 [path history] [tgz]
  1. src/
  2. build.gradle
  3. README.md
reactive/kotlinx-coroutines-rx1/README.md

Module kotlinx-coroutines-rx1

Utilities for RxJava 1.x.

Coroutine builders:

NameResultScopeDescription
rxCompletableCompletableCoroutineScopeCold completable that starts coroutine on subscribe
rxSingleSingleCoroutineScopeCold single that starts coroutine on subscribe
rxObservableObservableProducerScopeCold observable that starts coroutine on subscribe

Suspending extension functions and suspending iteration:

NameDescription
Completable.awaitCompletedAwaits for completion of the completable value
Single.awaitAwaits for completion of the single value and returns it
Observable.awaitFirstReturns the first value from the given observable
Observable.awaitFirstOrDefaultReturns the first value from the given observable or default
Observable.awaitFirstOrElseReturns the first value from the given observable or default from a function
Observable.awaitFirstOrNullReturns the first value from the given observable or null
Observable.awaitLastReturns the last value from the given observable
Observable.awaitSingleReturns the single value from the given observable
Observable.openSubscriptionSubscribes to observable and returns ReceiveChannel
Observable.iteratorSubscribes to observable and returns ChannelIterator

Conversion functions:

NameDescription
Job.asCompletableConverts job to hot completable
Deferred.asSingleConverts deferred value to hot single
ReceiveChannel.asObservableConverts streaming channel to hot observable

Package kotlinx.coroutines.experimental.rx1

Utilities for RxJava 1.x.