mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
855568fa34
fsync(2) is a somewhat expensive operation that flushes writes to the underlying disk/SSD. It's typically used by databases to ensure that writes survive very hard failure scenarios like your cat kicking the plug out of the wall. Synchronizing isn't automatically done by `flush`ing (from the `std::io::Write` or `tokio::io::AsyncWriteExt` traits). From the [`tokio::fs::File`] moduledocs: > To ensure that a file is closed immediately when it is dropped, you > should call `flush` before dropping it. Note that this does not ensure > that the file has been fully written to disk; the operating system > might keep the changes around in an in-memory buffer. See the > `sync_all` method for telling the OS to write the data to disk. [`tokio::fs::File`]: https://docs.rs/tokio/latest/tokio/fs/struct.File.html |
7 months ago | |
---|---|---|
.. | ||
handlers | 10 months ago | |
base64.rs | 2 years ago | |
clipboard.rs | 7 months ago | |
document.rs | 7 months ago | |
editor.rs | 7 months ago | |
events.rs | 10 months ago | |
graphics.rs | 2 years ago | |
gutter.rs | 7 months ago | |
handlers.rs | 10 months ago | |
info.rs | 1 year ago | |
input.rs | 11 months ago | |
keyboard.rs | 2 years ago | |
lib.rs | 10 months ago | |
macros.rs | 2 years ago | |
register.rs | 7 months ago | |
theme.rs | 1 year ago | |
tree.rs | 7 months ago | |
view.rs | 8 months ago |