From daf2cc3b45d44b249f058d1dbcf3c73d2b834ac6 Mon Sep 17 00:00:00 2001 From: Oussama boughizene Date: Tue, 31 Dec 2024 15:55:14 +0000 Subject: [PATCH] docs: clarify writableNeedDrain behavior and usage in streams --- doc/api/stream.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index 6f5fdd05a15d82..8af87cce29ac80 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -964,6 +964,7 @@ added: * {boolean} Is `true` if the stream's buffer has been full and stream will emit `'drain'`. +This flag does not update immediately after each write and remains `true` until the writable stream drains and the `drain` event is emitted. ##### `writable.writableObjectMode`