tree: 6991c31f86d42ae03a19184ccfd8271fbef942e9 [path history] [tgz]
  1. src/
  2. test/
  3. build.gradle
  4. package.list
  5. README.md
reactive/kotlinx-coroutines-reactive/README.md

Module kotlinx-coroutines-reactive

Utilities for Reactive Streams.

Coroutine builders:

NameResultScopeDescription
publishPublisherProducerScopeCold reactive publisher that starts coroutine on subscribe

Suspending extension functions and suspending iteration:

NameDescription
Publisher.awaitFirstReturns the first value from the given publisher
Publisher.awaitFirstOrDefaultReturns the first value from the given publisher or default
Publisher.awaitFirstOrElseReturns the first value from the given publisher or default from a function
Publisher.awaitFirstOrNullReturns the first value from the given publisher or null
Publisher.awaitLastReturns the last value from the given publisher
Publisher.awaitSingleReturns the single value from the given publisher
Publisher.openSubscriptionSubscribes to publisher and returns ReceiveChannel

Conversion functions:

NameDescription
ReceiveChannel.asPublisherConverts streaming channel to hot publisher

Package kotlinx.coroutines.reactive

Utilities for Reactive Streams.