Asynchronous Event Emitter
Nodejs Events runs in synchronous mode. This means that event listeners that are async
cannot be await
ed. This package extends the EventEmitter
class and enables the promises to chain into the emit
event.
const AsyncEventEmitter = ;const events = ; // it's the same core EventEmitter apis and behaviorevents; // but it await events { await events; console;};