Commit 81f3eb5
fs: add writev() promises version
#25925 added fs.writev()
and fs.writevSync(), but did not include a Promises based
equivalent. This commit adds the missing method.
Refs: #25925
PR-URL: #29186
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 4356836 commit 81f3eb5Copy full SHA for 81f3eb5
File tree
Expand file treeCollapse file tree
4 files changed
+108
-0
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal/fs
- test/parallel
Expand file treeCollapse file tree
4 files changed
+108
-0
lines changedOpen diff view settings
Collapse file
+26Lines changed: 26 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4212 | 4212 | |
4213 | 4213 | |
4214 | 4214 | |
| 4215 | + |
| 4216 | + |
| 4217 | + |
| 4218 | + |
| 4219 | + |
| 4220 | + |
| 4221 | + |
| 4222 | + |
| 4223 | + |
| 4224 | + |
| 4225 | + |
| 4226 | + |
| 4227 | + |
| 4228 | + |
| 4229 | + |
| 4230 | + |
| 4231 | + |
| 4232 | + |
| 4233 | + |
| 4234 | + |
| 4235 | + |
| 4236 | + |
| 4237 | + |
| 4238 | + |
| 4239 | + |
| 4240 | + |
4215 | 4241 | |
4216 | 4242 | |
4217 | 4243 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+17Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
| 32 | + |
32 | 33 | |
33 | 34 | |
34 | 35 | |
| ||
104 | 105 | |
105 | 106 | |
106 | 107 | |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
107 | 112 | |
108 | 113 | |
109 | 114 | |
| ||
255 | 260 | |
256 | 261 | |
257 | 262 | |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
258 | 275 | |
259 | 276 | |
260 | 277 | |
|
Collapse file
+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
18 | 19 | |
19 | 20 | |
20 | 21 | |
| ||
439 | 440 | |
440 | 441 | |
441 | 442 | |
| 443 | + |
| 444 | + |
| 445 | + |
| 446 | + |
| 447 | + |
| 448 | + |
| 449 | + |
| 450 | + |
| 451 | + |
| 452 | + |
| 453 | + |
| 454 | + |
442 | 455 | |
443 | 456 | |
444 | 457 | |
| ||
466 | 479 | |
467 | 480 | |
468 | 481 | |
| 482 | + |
469 | 483 | |
470 | 484 | |
471 | 485 | |
|
Collapse file
test/parallel/test-fs-writev-promises.js
Copy file name to clipboard+51Lines changed: 51 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 | + |
0 commit comments