Package-level declarations
Utilities for Reactor.
Types
Wraps Reactor's Context into a CoroutineContext element for seamless integration between Reactor and kotlinx.coroutines. Context.asCoroutineContext puts Reactor's Context elements into a CoroutineContext, which can be used to propagate the information about Reactor's Context through coroutines.
Implements CoroutineDispatcher on top of an arbitrary Scheduler.
Functions
Wraps the given ContextView into ReactorContext, so it can be added to the coroutine's context and later used via coroutineContext[ReactorContext]
.
Converts an instance of Scheduler to an implementation of CoroutineDispatcher.
Converts this job to the hot reactive mono that signals with success when the corresponding job completes.
Creates a cold reactive Flux that runs the given block in a coroutine. Every time the returned flux is subscribed, it starts a new coroutine in the specified context. The coroutine emits (Subscriber.onNext) values with send, completes (Subscriber.onComplete) when the coroutine completes, or, in case the coroutine throws an exception or the channel is closed, emits the error (Subscriber.onError) and closes the channel with the cause. Unsubscribing cancels the running coroutine.
Creates a cold mono that runs a given block in a coroutine and emits its result. Every time the returned mono is subscribed, it starts a new coroutine. If the result of block is null
, MonoSink.success is invoked without a value. Unsubscribing cancels the running coroutine.