Module resty.dynacode.event_emitter

Provide a mini event emitter library.

Functions

on (name, callback) Listening function.
emit (name, ...) Firing function.


Functions

on (name, callback)
Listening function.

Parameters:

  • name string the event name
  • callback function the callback function
emit (name, ...)
Firing function.

Parameters:

  • name string the event name
  • ... all the needed parameters
generated by LDoc 1.4.6 Last updated 2022-03-10 17:13:14