Eventm help you to manage all evenements in your code. The library store the state, data returned and the callback stack for you. Can be used like RabbitMQ in your local project.
resolveForced method is used to set a success response in forced mode (it means: if there are already a statement then this forces the system to recall all callbacks with the new paramter). Obviously it doesn't works for promise.
reject(any: data = undefined): undefined
reject method is used to set an error response
push(function: callback): Promise
push method is used to add new callback
Options
Name
Default
Description
keepSession
true
true = If the callback is alreayd executed, keepSession keep the session open for the futur callback
promise
true
true = The callback is called with a single paramter - false = The callback is call with (err, data) => {} parameters