Skip to content

Commit 561d832

Browse files
Trotttargos
authored andcommitted
doc: make AbortSignal text consistent in events.md
Further minor modifications to AbortSignal text in events.md for consistency. PR-URL: nodejs#35005 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent affb52d commit 561d832

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/events.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,7 @@ added:
10141014
* `emitter` {EventEmitter}
10151015
* `eventName` {string|symbol} The name of the event being listened for
10161016
* `options` {Object}
1017-
* `signal` {AbortSignal} An {AbortSignal} that can be used to cancel awaiting
1018-
events.
1017+
* `signal` {AbortSignal} Can be used to cancel awaiting events.
10191018
* Returns: {AsyncIterator} that iterates `eventName` events emitted by the `emitter`
10201019

10211020
```js
@@ -1045,7 +1044,7 @@ if the `EventEmitter` emits `'error'`. It removes all listeners when
10451044
exiting the loop. The `value` returned by each iteration is an array
10461045
composed of the emitted event arguments.
10471046

1048-
An {AbortSignal} may be used to cancel waiting on events:
1047+
An {AbortSignal} can be used to cancel waiting on events:
10491048

10501049
```js
10511050
const { on, EventEmitter } = require('events');

0 commit comments

Comments
 (0)