Mflush
Bun

method

fs.Utf8Stream.flush

callback: (err: null | Error) => void
): void;

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.