kmongo / org.litote.kmongo.coroutine / org.reactivestreams.Publisher

Extensions for org.reactivestreams.Publisher

coroutine

Gets coroutine version of Publisher.

val <T : Any> Publisher<T>.coroutine: CoroutinePublisher<T>

toList

Provides a list of not null elements from the publisher.

suspend fun <T> Publisher<T>.toList(): List<T>