invoke

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

Invokes the function and returns its Mono result, wrapped in Mono.defer for proper lazy evaluation. The defer operator ensures that the function is only executed when the Mono is subscribed to.

Return

a Mono containing the function result

Parameters

target

the object on which to invoke the function

args

the arguments to pass to the function