We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
events.once()
AbortSignal
1 parent c9a1bbb commit b03272bCopy full SHA for b03272b
1 file changed
doc/api/events.md
@@ -1459,8 +1459,7 @@ async function foo(emitter, event, signal) {
1459
}
1460
1461
foo(ee, 'foo', ac.signal);
1462
-ac.abort(); // Abort waiting for the event
1463
-ee.emit('foo'); // Prints: Waiting for the event was canceled!
+ac.abort(); // Prints: Waiting for the event was canceled!
1464
```
1465
1466
```cjs
@@ -1483,8 +1482,7 @@ async function foo(emitter, event, signal) {
1483
1482
1484
1485
1486
1487
1488
1489
1490
### Awaiting multiple events emitted on `process.nextTick()`
0 commit comments