dispatch

fun <T : Any> dispatch(session: UiSession, key: ActionKey<T>, value: T): ActionResult(source)

Delivers value to handlers registered for key.

Return

consumed when a matching handler accepts the action, otherwise ignored.

Parameters

key

exact referential action key shared with the handlers.

value

immutable payload owned by the caller for the duration of synchronous delivery.

Throws

when a matching application callback fails.