Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 690deaa

Browse filesBrowse files
dev-scripttargos
authored andcommitted
doc: improve doc writable streams: 'finish' event
doc change for stream.md that 'finish' event should be before writer.end fixes: #30759 PR-URL: #30889 Fixes: #30759 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 2f4615c commit 690deaa
Copy full SHA for 690deaa

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,10 @@ const writer = getWritableStreamSomehow();
294294
for (let i = 0; i < 100; i++) {
295295
writer.write(`hello, #${i}!\n`);
296296
}
297-
writer.end('This is the end\n');
298297
writer.on('finish', () => {
299298
console.log('All writes are now complete.');
300299
});
300+
writer.end('This is the end\n');
301301
```
302302

303303
##### Event: `'pipe'`

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.