strict-event-emitter-once
A typed implementation of Node.js events.once(emitter, name)
for use with strict-event-emitter-types
.
Creates a Promise that is fulfilled when the EventEmitter emits the given event.
Example usage
; // setup typed event emitter;; // define your events // create strict event emitter types; // await for an event; // await for an event that matches criteria;