invoke

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

Invokes the function that returns a Publisher and converts it to a Mono. Uses Mono.defer for lazy evaluation and toMono() to convert the Publisher to a Mono that emits the first item.

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