Course contentsShow
← Node.js
Lesson 629 of 3,15913. Core Library Reference: Events, Scheduling, and StreamsFree lesson

Node API: events.once

Creates a Promise that is fulfilled when the EventEmitter emits the given event or that is rejected if the EventEmitter emits 'error' while waiting.

Writing your lesson…