Types

Hook

Hook is a simple pub-sub

Parent types

Methods

call(hook:Hook, *args:Arr)
Runs all handlers passing all args.
init(hook:Hook)
Hook constructor.
push(hook:Hook, handler:Closure)
Add unnamed handler. The hook is automatically named "pushed-N" where N is sequential integer.