create

fun <T, D : Any> create(function: KFunction<*>): MonoFunctionAccessor<T, Mono<D>>

Creates the accessor of function: a suspend function, or one returning Flow, Mono, Flux, another Publisher or a plain value, each adapted to a Mono; a function annotated with @Blocking is moved off non-blocking threads.

Parameters

function

the Kotlin function to create an accessor for

Type Parameters

T

the type of the target object

D

the type of data in the Mono