- :nothing
emit
fire given event, scheduling each registered handler on the next dispatcher tick
Parameters
emit event :event
Attributes
| with | :any | pass given value as the event's payload |
Returns
Examples
copyDataReady: event 'data-ready on.with:'p DataReady [ print ["got:" p] ] emit.with: "hello" DataReady ; → got: hello (fires on next dispatcher tick)
copy; no payload, just emit: emit CtrlC