kmongo / org.litote.kmongo.reactor / org.reactivestreams.Publisher / block

block

fun <T> Publisher<T>.block(): T? (source)

Waits in a blocking fashion until the current Single signals a success value, null (which is returned) or an exception (which is propagated).

Return
the success value or null