How to properly close a writeable file stream

54 views
Skip to first unread message

Matan Safriel

unread,
Jul 25, 2014, 1:59:46 PM7/25/14
to nod...@googlegroups.com
Hi,

I'm a bit confused about closing a writeable file stream. See https://github.com/flatiron/winston/issues/423 - third and last comment.

Call this method when no more data will be written to the stream. 

Does this mean it is left to the application developer to track all write callbacks in order to determine the earliest time that .end can be called? 

Thanks!
Matan
Reply all
Reply to author
Forward
0 new messages