| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2f4615c commit 690deaa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -294,10 +294,10 @@ const writer = getWritableStreamSomehow(); | |||
| 294 | 294 | for (let i = 0; i < 100; i++) { | |
| 295 | 295 | writer.write(`hello, #${i}!\n`); | |
| 296 | 296 | } | |
| 297 | - writer.end('This is the end\n'); | ||
| 298 | 297 | writer.on('finish', () => { | |
| 299 | 298 | console.log('All writes are now complete.'); | |
| 300 | 299 | }); | |
| 300 | + writer.end('This is the end\n'); | ||
| 301 | 301 | ``` | |
| 302 | 302 | ||
| 303 | 303 | ##### Event: `'pipe'` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments