invoke

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

Invokes the synchronous function and wraps the result in a Mono. Uses Mono.fromCallable to execute the blocking operation on a suitable thread and provide reactive stream compatibility.

Return

a Mono containing the result of the synchronous function call

Parameters

target

the object on which to invoke the function

args

the arguments to pass to the function