tree: 1d16f3dc93016fc2e4e941d4a0a469805f102e68 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
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.awaitAwaits 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.awaitLastReturns the last value from the given observable
Observable.awaitSingleReturns the single value from the given observable
Observable.openSubscribes to observable and returns ReceiveChannel
Observable.iteratorSubscribes to observable and returns ChannelIterator

Conversion functions:

NameDescription
Job.toCompletableConverts job to hot completable
Deferred.toSingleConverts deferred value to hot single
ReceiveChannel.toObservableConverts streaming channel to hot observable

Package kotlinx.coroutines.experimental.rx1

Utilities for RxJava 1.x.