tree: 9a791eeb63268c5c066b7fa67ae58040857c150e [path history] [tgz]
  1. api/
  2. resources/
  3. src/
  4. test/
  5. build.gradle
  6. package.list
  7. README.md
reactive/kotlinx-coroutines-reactor/README.md

Module kotlinx-coroutines-reactor

Utilities for Reactor.

Coroutine builders:

NameResultScopeDescription
monoMonoCoroutineScopeCold mono that starts coroutine on subscribe
fluxFluxCoroutineScopeCold flux that starts coroutine on subscribe

Note that Mono and Flux are a subclass of Reactive Streams Publisher and extensions for it are covered by kotlinx-coroutines-reactive module.

Integration with Flow:

NameResultDescription
Flow.asFluxFluxConverts the given flow to the TCK-compliant Flux.

This adapter is integrated with Reactor's Context and coroutines ReactorContext.

Conversion functions:

NameDescription
Job.asMonoConverts job to hot mono
Deferred.asMonoConverts deferred value to hot mono
ReceiveChannel.asFluxConverts streaming channel to hot flux
Scheduler.asCoroutineDispatcherConverts scheduler to CoroutineDispatcher

Package kotlinx.coroutines.reactor

Utilities for Reactor.