Commit 1a362d8
doc: revise AbortSignal text and example using events.once()
Add a line to the example code to clarify what happens if an event is
emitted after listening is canceled. Make minor revisions to surrounding
text.
PR-URL: #35005
Backport-PR-URL: #38386
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 3f33b5a commit 1a362d8
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
842 | | - | |
843 | | - | |
| 842 | + | |
844 | 843 | | |
845 | 844 | | |
846 | 845 | | |
| |||
899 | 898 | | |
900 | 899 | | |
901 | 900 | | |
902 | | - | |
| 901 | + | |
903 | 902 | | |
904 | 903 | | |
905 | 904 | | |
| |||
922 | 921 | | |
923 | 922 | | |
924 | 923 | | |
| 924 | + | |
925 | 925 | | |
926 | 926 | | |
927 | 927 | | |
| |||
0 commit comments