File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -585,8 +585,8 @@ The `writable.write()` method writes some data to the stream, and calls the
585585supplied ` callback ` once the data has been fully handled. If an error
586586occurs, the ` callback ` * may or may not* be called with the error as its
587587first argument. To reliably detect write errors, add a listener for the
588- ` 'error' ` event. If ` callback ` is called with an error, it will be called
589- before the ` 'error' ` event is emitted.
588+ ` 'error' ` event. The ` callback ` method will always be called asynchronously
589+ and before ` 'error' ` is emitted.
590590
591591The return value is ` true ` if the internal buffer is less than the
592592` highWaterMark ` configured when the stream was created after admitting ` chunk ` .
@@ -1890,8 +1890,8 @@ methods only.
18901890The ` callback ` method must be called to signal either that the write completed
18911891successfully or failed with an error. The first argument passed to the
18921892` callback ` must be the ` Error ` object if the call failed or ` null ` if the
1893- write succeeded. The ` callback ` method will always be called asynchronously and
1894- before ` 'error' ` is emitted .
1893+ write succeeded. The ` callback ` must be called synchronously inside of
1894+ ` writable._write() ` or asynchronously (i.e. different tick) .
18951895
18961896All calls to ` writable.write() ` that occur between the time ` writable._write() `
18971897is called and the ` callback ` is called will cause the written data to be
You can’t perform that action at this time.
0 commit comments