asMono

fun Job.asMono(
    context: CoroutineContext = DefaultDispatcher
): Mono<Unit>

Converts this job to the hot reactive mono that signals with success when the corresponding job completes.

Every subscriber gets the signal at the same time. Unsubscribing from the resulting mono does not affect the original job in any way.

Parameters

context - – the coroutine context from which the resulting mono is going to be signalled