callbacks
open fun <C, A> callbacks(callbackType: Class<C>, callbackInstances: Collection<out C>, argument: A, additionalArguments: Array<Any>): LambdaSafe.Callbacks<C, A>
Start a call to callback instances, dealing with common generic type concerns and exceptions.
Return
a Callbacks instance that can be invoked.
Parameters
callbackType
the callback type (a functional interface)
callbackInstances
the callback instances (elements may be lambdas)
argument
the primary argument passed to the callbacks
additionalArguments
any additional arguments passed to the callbacks
<C>
the callback type
<A>
the primary argument type