Commit cde5960
stream: implement finished() for ReadableStream and WritableStream
Refs: #39316
PR-URL: #46205
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 896027c commit cde5960Copy full SHA for cde5960
File tree
Expand file treeCollapse file tree
5 files changed
+301
-9
lines changedOpen diff view settings
Filter options
- lib/internal
- streams
- webstreams
- test/parallel
Expand file treeCollapse file tree
5 files changed
+301
-9
lines changedOpen diff view settings
Collapse file
lib/internal/streams/end-of-stream.js
Copy file name to clipboardExpand all lines: lib/internal/streams/end-of-stream.js+20-5Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | 30 | |
| 31 | + |
31 | 32 | |
32 | 33 | |
33 | 34 | |
34 | 35 | |
| 36 | + |
35 | 37 | |
36 | 38 | |
37 | 39 | |
38 | 40 | |
| 41 | + |
39 | 42 | |
40 | 43 | |
41 | 44 | |
| ||
58 | 61 | |
59 | 62 | |
60 | 63 | |
61 | | - |
62 | | - |
| 64 | + |
| 65 | + |
| 66 | + |
63 | 67 | |
64 | 68 | |
65 | | - |
66 | | - |
| 69 | + |
67 | 70 | |
68 | 71 | |
| 72 | + |
| 73 | + |
| 74 | + |
69 | 75 | |
70 | 76 | |
71 | 77 | |
| ||
255 | 261 | |
256 | 262 | |
257 | 263 | |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
258 | 273 | |
259 | 274 | |
260 | 275 | |
|
Collapse file
lib/internal/streams/utils.js
Copy file name to clipboardExpand all lines: lib/internal/streams/utils.js+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
10 | 11 | |
11 | 12 | |
12 | 13 | |
13 | 14 | |
| 15 | + |
| 16 | + |
14 | 17 | |
15 | 18 | |
16 | 19 | |
| ||
55 | 58 | |
56 | 59 | |
57 | 60 | |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
58 | 80 | |
59 | 81 | |
60 | 82 | |
| ||
269 | 291 | |
270 | 292 | |
271 | 293 | |
| 294 | + |
272 | 295 | |
273 | 296 | |
274 | 297 | |
275 | 298 | |
276 | 299 | |
277 | 300 | |
| 301 | + |
278 | 302 | |
279 | 303 | |
280 | 304 | |
281 | 305 | |
282 | 306 | |
283 | 307 | |
| 308 | + |
284 | 309 | |
285 | 310 | |
286 | 311 | |
|
Collapse file
lib/internal/webstreams/readablestream.js
Copy file name to clipboardExpand all lines: lib/internal/webstreams/readablestream.js+11-3Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
85 | 85 | |
86 | 86 | |
87 | 87 | |
| 88 | + |
88 | 89 | |
89 | 90 | |
90 | 91 | |
| ||
258 | 259 | |
259 | 260 | |
260 | 261 | |
261 | | - |
| 262 | + |
262 | 263 | |
263 | 264 | |
| 265 | + |
| 266 | + |
264 | 267 | |
265 | 268 | |
266 | 269 | |
| ||
652 | 655 | |
653 | 656 | |
654 | 657 | |
655 | | - |
| 658 | + |
656 | 659 | |
| 660 | + |
657 | 661 | |
658 | 662 | |
659 | 663 | |
| ||
1213 | 1217 | |
1214 | 1218 | |
1215 | 1219 | |
1216 | | - |
| 1220 | + |
1217 | 1221 | |
| 1222 | + |
1218 | 1223 | |
1219 | 1224 | |
1220 | 1225 | |
| ||
1887 | 1892 | |
1888 | 1893 | |
1889 | 1894 | |
| 1895 | + |
1890 | 1896 | |
1891 | 1897 | |
1892 | 1898 | |
| ||
1908 | 1914 | |
1909 | 1915 | |
1910 | 1916 | |
| 1917 | + |
| 1918 | + |
1911 | 1919 | |
1912 | 1920 | |
1913 | 1921 | |
|
Collapse file
lib/internal/webstreams/writablestream.js
Copy file name to clipboardExpand all lines: lib/internal/webstreams/writablestream.js+13-1Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
69 | 69 | |
70 | 70 | |
71 | 71 | |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
72 | 76 | |
73 | 77 | |
74 | 78 | |
| ||
191 | 195 | |
192 | 196 | |
193 | 197 | |
194 | | - |
| 198 | + |
195 | 199 | |
196 | 200 | |
| 201 | + |
| 202 | + |
197 | 203 | |
198 | 204 | |
199 | 205 | |
| ||
363 | 369 | |
364 | 370 | |
365 | 371 | |
| 372 | + |
366 | 373 | |
367 | 374 | |
368 | 375 | |
| ||
742 | 749 | |
743 | 750 | |
744 | 751 | |
| 752 | + |
| 753 | + |
| 754 | + |
| 755 | + |
745 | 756 | |
746 | 757 | |
747 | 758 | |
| ||
855 | 866 | |
856 | 867 | |
857 | 868 | |
| 869 | + |
858 | 870 | |
859 | 871 | |
860 | 872 | |
|
0 commit comments