Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJScustom EventEmitter classesSingle-choice MCQ

Using events.once(emitter, eventName) to await an event that is emitted with multiple arguments, what does the returned promise resolve to?

setImmediate(() => ee.emit('done', 1, 2, 3)); const result = await once(ee, 'done');