thread-stream icon indicating copy to clipboard operation
thread-stream copied to clipboard

flush semantics are unclear

Open ronag opened this issue 2 years ago • 1 comments

The semantics of flush is a little unclear to me, i.e. when I call flush(cb) I'd expect that all data that I have write(chunk) would be flushed when cb is invoked. However, unlike flushSync this is not the case. flush doesn't actually flush the buffer to the worker, it just waits for whatever already has been flushed to worker is done.

ronag avatar Dec 10 '21 15:12 ronag