Package com.ricarvalho.livecallback

Types

Callback
Link copied to clipboard
typealias Callback<I, O> = (I) -> O

A callback that receive a parameter and return a value.

CallbackToken
Link copied to clipboard
value class CallbackToken<I, O>

A normalized identification of a callback's origin, agnostic to its instance.

InputCallback
Link copied to clipboard
typealias InputCallback<I> = Callback<I, Unit>

A callback that receive a parameter and return no value.

InputCallbackToken
Link copied to clipboard
typealias InputCallbackToken<I> = CallbackToken<I, Unit>

A CallbackToken for callbacks that receive a parameter and return no value.

OutputCallback
Link copied to clipboard
typealias OutputCallback<O> = () -> O

A callback that receive no parameters and return a value.

OutputCallbackToken
Link copied to clipboard
typealias OutputCallbackToken<O> = CallbackToken<Void, O>

A CallbackToken for callbacks that receive no parameters and return a value.

SimpleCallback
Link copied to clipboard
typealias SimpleCallback = OutputCallback<Unit>

A callback that receive no parameters and return no value.

SimpleCallbackToken
Link copied to clipboard
typealias SimpleCallbackToken = CallbackToken<Void, Unit>

A CallbackToken for callbacks that receive no parameters and return no value.