You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both .write() and .end() accept a callback to be notified after the content has been flushed.
I had a use case, where I needed to wait until the stream had finished to proceed. The code would look much cleaner, if I could use await and/or promises.
Can you please add a proxy for instances of stream.Writable ?
https://nodejs.org/api/stream.html#stream_class_stream_writable
in particular I would be interested in the instances created by fs.createWriteStream()
https://nodejs.org/api/fs.html#fs_fs_createwritestream_path_options
The text was updated successfully, but these errors were encountered: