BindFunc is similar to Bind but registers a new handler from just the provided function.
The registered handler is added with a default 0 priority and the id will be autogenerated.
If you want to register a handler with custom priority or id use the [Hook.Bind] method.
Trigger executes all registered hook handlers one by one with the specified event as an argument.
Optionally, this method allows also to register additional one off handler funcs that will be temporary appended to the handlers queue.
NB! Each hook handler must call event.Next() in order the hook chain to proceed.
Rest
...oneOffHandlerFuncs: ((_arg0) => void)[]Generated using TypeDoc
Hook defines a generic concurrent safe structure for managing event hooks.
When using custom event it must embed the base [hook.Event].
Example: