class EventHandler::Wrapper(T)
- EventHandler::Wrapper(T)
- Reference
- Object
Overview
Generic class wrapping each installed handler.
It is generally not used directly; but is exposed by the system in response to on()
and is sent as an argument to AnyEvent
, AddHandlerEvent
, and RemoveHandlerEvent
.
It provides additional information about the handler, such as values for once, async, and initial position/index in the list of event's handlers.
The information about the index is informational. The best use is to check it for values of 0 or -1, indicating that handler was added at the beginning or end of list respectively.