Much of the Node.js core API is built around an idiomatic asynchronous event-driven architecture in which certain kinds of objects (called "emitters") emit named events that cause Function objects ("listeners") to be called.

See also:

Static methods

staticonce<T>(emitter:IEventEmitter, name:Event<T>):Promise<Array<Dynamic>>

Creates a Promise that is resolved when the EventEmitter emits the given event or that is rejected when the EventEmitter emits 'error'. The Promise will resolve with an array of all the arguments emitted to the given event.

See also: