invokeAnd

open fun <R> invokeAnd(invoker: (C) -> R): LambdaSafe.InvocationResult<R>

Invoke the callback instance where the callback method returns a result.

Return

the result of the invocation (may be noResult if the callback was not invoked)

Parameters

invoker

the invoker used to invoke the callback

<R>

the result type