Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8536,12 +8536,13 @@ Close the stream gracefully, flushing the internal buffer before closing.
* `callback` {Function}
* `err` {Error|null} An error if the flush failed, otherwise `null`.

Writes the current buffer to the file if a write was not in progress. Do
nothing if `minLength` is zero or if it is already writing.
Writes the current buffer to the file. The callback is invoked after pending
writes complete.

#### `utf8Stream.flushSync()`

Flushes the buffered data synchronously. This is a costly operation.
Flushes the buffered data synchronously. This is a costly operation. An
`ERR_INVALID_STATE` error is thrown if the stream is currently writing.

#### `utf8Stream.fsync`

Expand Down
1 change: 1 addition & 0 deletions doc/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* [Inspector](inspector.md)
* [Internationalization](intl.md)
* [Iterable Streams API](stream_iter.md)
* [Logger](logger.md)
* [Modules: CommonJS modules](modules.md)
* [Modules: ECMAScript modules](esm.md)
* [Modules: `node:module` API](module.md)
Expand Down
Loading
Loading