Commit 92bdfd1
fs: add support for AbortSignal in readFile
PR-URL: #35911
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>1 parent d83e253 commit 92bdfd1Copy full SHA for 92bdfd1
File tree
Expand file treeCollapse file tree
7 files changed
+144
-14
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- internal/fs
- test/parallel
Expand file treeCollapse file tree
7 files changed
+144
-14
lines changedOpen diff view settings
Collapse file
+42Lines changed: 42 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3031 | 3031 | |
3032 | 3032 | |
3033 | 3033 | |
| 3034 | + |
| 3035 | + |
| 3036 | + |
| 3037 | + |
3034 | 3038 | |
3035 | 3039 | |
3036 | 3040 | |
| ||
3056 | 3060 | |
3057 | 3061 | |
3058 | 3062 | |
| 3063 | + |
3059 | 3064 | |
3060 | 3065 | |
3061 | 3066 | |
| ||
3097 | 3102 | |
3098 | 3103 | |
3099 | 3104 | |
| 3105 | + |
| 3106 | + |
| 3107 | + |
| 3108 | + |
| 3109 | + |
| 3110 | + |
| 3111 | + |
| 3112 | + |
| 3113 | + |
| 3114 | + |
| 3115 | + |
| 3116 | + |
| 3117 | + |
3100 | 3118 | |
3101 | 3119 | |
3102 | 3120 | |
| 3121 | + |
| 3122 | + |
| 3123 | + |
3103 | 3124 | |
3104 | 3125 | |
3105 | 3126 | |
| ||
4771 | 4792 | |
4772 | 4793 | |
4773 | 4794 | |
| 4795 | + |
4774 | 4796 | |
4775 | 4797 | |
4776 | 4798 | |
| ||
5438 | 5460 | |
5439 | 5461 | |
5440 | 5462 | |
| 5463 | + |
| 5464 | + |
| 5465 | + |
| 5466 | + |
| 5467 | + |
5441 | 5468 | |
5442 | 5469 | |
5443 | 5470 | |
5444 | 5471 | |
5445 | 5472 | |
5446 | 5473 | |
| 5474 | + |
5447 | 5475 | |
5448 | 5476 | |
5449 | 5477 | |
| ||
5459 | 5487 | |
5460 | 5488 | |
5461 | 5489 | |
| 5490 | + |
| 5491 | + |
| 5492 | + |
| 5493 | + |
| 5494 | + |
| 5495 | + |
| 5496 | + |
| 5497 | + |
| 5498 | + |
| 5499 | + |
| 5500 | + |
| 5501 | + |
| 5502 | + |
| 5503 | + |
5462 | 5504 | |
5463 | 5505 | |
5464 | 5506 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
315 | 315 | |
316 | 316 | |
317 | 317 | |
| 318 | + |
| 319 | + |
| 320 | + |
318 | 321 | |
319 | 322 | |
320 | 323 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+23-2Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
| 32 | + |
| 33 | + |
32 | 34 | |
33 | 35 | |
34 | 36 | |
35 | 37 | |
36 | | - |
37 | | - |
| 38 | + |
| 39 | + |
38 | 40 | |
39 | 41 | |
40 | 42 | |
| ||
82 | 84 | |
83 | 85 | |
84 | 86 | |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
85 | 94 | |
86 | 95 | |
87 | 96 | |
| ||
259 | 268 | |
260 | 269 | |
261 | 270 | |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
262 | 276 | |
263 | 277 | |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
264 | 282 | |
265 | 283 | |
266 | 284 | |
| ||
277 | 295 | |
278 | 296 | |
279 | 297 | |
| 298 | + |
| 299 | + |
| 300 | + |
280 | 301 | |
281 | 302 | |
282 | 303 | |
|
Collapse file
lib/internal/fs/read_file_context.js
Copy file name to clipboardExpand all lines: lib/internal/fs/read_file_context.js+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
11 | 21 | |
12 | 22 | |
13 | 23 | |
| ||
74 | 84 | |
75 | 85 | |
76 | 86 | |
| 87 | + |
77 | 88 | |
78 | 89 | |
79 | 90 | |
80 | 91 | |
81 | 92 | |
82 | 93 | |
83 | 94 | |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
84 | 100 | |
85 | 101 | |
86 | 102 | |
|
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
35 | 35 | |
36 | 36 | |
37 | 37 | |
| 38 | + |
38 | 39 | |
39 | 40 | |
40 | 41 | |
| ||
296 | 297 | |
297 | 298 | |
298 | 299 | |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
299 | 304 | |
300 | 305 | |
301 | 306 | |
|
Collapse file
test/parallel/test-fs-promises-readfile.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-promises-readfile.js+37-12Lines changed: 37 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
20 | 19 | |
| 20 | + |
21 | 21 | |
22 | | - |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
23 | 26 | |
24 | | - |
| 27 | + |
25 | 28 | |
26 | 29 | |
27 | 30 | |
| ||
39 | 42 | |
40 | 43 | |
41 | 44 | |
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 | + |
Collapse file
test/parallel/test-fs-readfile.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-readfile.js+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
0 commit comments