toSingle

fun <T> Mono<T>.toSingle(): Single<T>

Wraps a Mono instance into a RxJava Single.

If the Mono is empty, the single will signal a NoSuchElementException.

Return

the new Single instance

Parameters

the value type