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 748ed2e commit b963db9Copy full SHA for b963db9
1 file changed
doc/api/events.md
@@ -1455,8 +1455,7 @@ async function foo(emitter, event, signal) {
1455
}
1456
1457
foo(ee, 'foo', ac.signal);
1458
-ac.abort(); // Abort waiting for the event
1459
-ee.emit('foo'); // Prints: Waiting for the event was canceled!
+ac.abort(); // Prints: Waiting for the event was canceled!
1460
```
1461
1462
```cjs
@@ -1479,8 +1478,7 @@ async function foo(emitter, event, signal) {
1479
1478
1480
1481
1482
1483
1484
1485
1486
### Awaiting multiple events emitted on `process.nextTick()`
0 commit comments