Handler<T, U> (type)
Every time attach*
, waitFor
or pipe
is invoked a new Handler<T, U>
is attached to the Evt<T>
.
Handlers can be listed using the evt.getHandler()
method.
Glossary relative to handers:
An event is said to be matched by a handler if posting it causes the callback to be invoked. In practice this is the case when the handler's operator returns true or [ value, ].
An event is said to be handled by a handler if the event data is matched or if posting it causes the handler and/or other potential handlers to be detached. In practice this is the case when the handler's operator returns
"DETACH"
or{DETACH: Ctx}.
It is possible to test if a given event data is handled by at least one of the handlers attached to an Evt<T> by using theevt.isHandled(data)
method.
Last updated