mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 15:06:33 +01:00
doc: state callback behavior on empty buffer
PR-URL: https://github.com/nodejs/node/pull/22461 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
parent
c8a27a7617
commit
f7273edfde
@ -744,7 +744,7 @@ The `encoding` argument is optional and only applies when `chunk` is a string.
|
||||
Defaults to `'utf8'`.
|
||||
|
||||
The `callback` argument is optional and will be called when this chunk of data
|
||||
is flushed.
|
||||
is flushed, but only if the chunk is non-empty.
|
||||
|
||||
Returns `true` if the entire data was flushed successfully to the kernel
|
||||
buffer. Returns `false` if all or part of the data was queued in user memory.
|
||||
|
Loading…
Reference in New Issue
Block a user