Skip to content

Commit daf2cc3

Browse files
committed
docs: clarify writableNeedDrain behavior and usage in streams
1 parent 19d58c5 commit daf2cc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/api/stream.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ added:
964964
* {boolean}
965965

966966
Is `true` if the stream's buffer has been full and stream will emit `'drain'`.
967+
This flag does not update immediately after each write and remains `true` until the writable stream drains and the `drain` event is emitted.
967968

968969
##### `writable.writableObjectMode`
969970

0 commit comments

Comments
 (0)