asPublisher

@CheckReturnValue
fun <T : Any> asPublisher(flow: ERROR CLASS: Symbol not found for Flow<T>): Publisher<T>

Exposes flow as a Publisher. Elements must be non-null; Reactive Streams forbids null. For a single value, use async and Mono.fromFuture(...) instead.