invoke

open operator override fun invoke(target: T, args: Array<Any?> = emptyArray<Any?>()): Mono<D>

Invokes the function that returns a Publisher and converts it to a Mono. Uses Mono.defer for lazy evaluation and collectList() to aggregate the Publisher emissions.

Return

a Mono containing the first item emitted by the Publisher

Parameters

target

the object on which to invoke the function

args

the arguments to pass to the function