Commit 7392cd0
stream: add abort signal for ReadableStream and WritableStream
Refs: #39316
PR-URL: #46273
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 4222e58 commit 7392cd0Copy full SHA for 7392cd0
File tree
Expand file treeCollapse file tree
6 files changed
+233
-12
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- streams
- webstreams
- test/parallel
Expand file treeCollapse file tree
6 files changed
+233
-12
lines changedOpen diff view settings
Collapse file
+40-2Lines changed: 40 additions & 2 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3226 | 3226 | |
3227 | 3227 | |
3228 | 3228 | |
| 3229 | + |
| 3230 | + |
| 3231 | + |
| 3232 | + |
| 3233 | + |
3229 | 3234 | |
3230 | 3235 | |
3231 | 3236 | |
3232 | | - |
| 3237 | + |
| 3238 | + |
| 3239 | + |
3233 | 3240 | |
3234 | 3241 | |
3235 | 3242 | |
3236 | 3243 | |
3237 | 3244 | |
3238 | 3245 | |
3239 | | - |
| 3246 | + |
3240 | 3247 | |
3241 | 3248 | |
3242 | 3249 | |
| ||
3274 | 3281 | |
3275 | 3282 | |
3276 | 3283 | |
| 3284 | + |
| 3285 | + |
| 3286 | + |
| 3287 | + |
| 3288 | + |
| 3289 | + |
| 3290 | + |
| 3291 | + |
| 3292 | + |
| 3293 | + |
| 3294 | + |
| 3295 | + |
| 3296 | + |
| 3297 | + |
| 3298 | + |
| 3299 | + |
| 3300 | + |
| 3301 | + |
| 3302 | + |
| 3303 | + |
| 3304 | + |
| 3305 | + |
| 3306 | + |
| 3307 | + |
| 3308 | + |
| 3309 | + |
| 3310 | + |
| 3311 | + |
| 3312 | + |
| 3313 | + |
| 3314 | + |
3277 | 3315 | |
3278 | 3316 | |
3279 | 3317 | |
|
Collapse file
lib/internal/streams/add-abort-signal.js
Copy file name to clipboardExpand all lines: lib/internal/streams/add-abort-signal.js+16-9Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
8 | 14 | |
9 | 15 | |
10 | 16 | |
| ||
18 | 24 | |
19 | 25 | |
20 | 26 | |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | 27 | |
26 | 28 | |
27 | | - |
28 | | - |
| 29 | + |
| 30 | + |
29 | 31 | |
30 | 32 | |
31 | 33 | |
| 34 | + |
32 | 35 | |
33 | 36 | |
34 | 37 | |
35 | 38 | |
36 | | - |
37 | | - |
38 | | - |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
39 | 46 | |
40 | 47 | |
41 | 48 | |
|
Collapse file
lib/internal/streams/utils.js
Copy file name to clipboardExpand all lines: lib/internal/streams/utils.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
16 | 17 | |
17 | 18 | |
18 | 19 | |
| ||
305 | 306 | |
306 | 307 | |
307 | 308 | |
| 309 | + |
308 | 310 | |
309 | 311 | |
310 | 312 | |
|
Collapse file
lib/internal/webstreams/readablestream.js
Copy file name to clipboardExpand all lines: lib/internal/webstreams/readablestream.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
83 | 83 | |
84 | 84 | |
85 | 85 | |
| 86 | + |
86 | 87 | |
87 | 88 | |
88 | 89 | |
| ||
260 | 261 | |
261 | 262 | |
262 | 263 | |
| 264 | + |
263 | 265 | |
264 | 266 | |
265 | 267 | |
| ||
1891 | 1893 | |
1892 | 1894 | |
1893 | 1895 | |
1894 | | - |
1895 | 1896 | |
1896 | 1897 | |
1897 | 1898 | |
| ||
2330 | 2331 | |
2331 | 2332 | |
2332 | 2333 | |
| 2334 | + |
2333 | 2335 | |
2334 | 2336 | |
2335 | 2337 | |
|
Collapse file
lib/internal/webstreams/writablestream.js
Copy file name to clipboardExpand all lines: lib/internal/webstreams/writablestream.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
71 | 71 | |
72 | 72 | |
73 | 73 | |
| 74 | + |
74 | 75 | |
75 | 76 | |
76 | 77 | |
| ||
199 | 200 | |
200 | 201 | |
201 | 202 | |
| 203 | + |
202 | 204 | |
203 | 205 | |
204 | 206 | |
| ||
370 | 372 | |
371 | 373 | |
372 | 374 | |
| 375 | + |
373 | 376 | |
374 | 377 | |
375 | 378 | |
| ||
1282 | 1285 | |
1283 | 1286 | |
1284 | 1287 | |
| 1288 | + |
1285 | 1289 | |
1286 | 1290 | |
1287 | 1291 | |
|
Collapse file
test/parallel/test-webstreams-abort-controller.js
Copy file name to clipboard+168Lines changed: 168 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
0 commit comments