mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
fs: update the doc comment of File::sync_data (#1596)
This commit is contained in:
parent
c4567f741a
commit
b71b7b36be
@ -266,14 +266,14 @@ impl File {
|
|||||||
asyncify(move || std.sync_all()).await
|
asyncify(move || std.sync_all()).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This function is similar to `poll_sync_all`, except that it may not
|
/// This function is similar to `sync_all`, except that it may not
|
||||||
/// synchronize file metadata to the filesystem.
|
/// synchronize file metadata to the filesystem.
|
||||||
///
|
///
|
||||||
/// This is intended for use cases that must synchronize content, but don't
|
/// This is intended for use cases that must synchronize content, but don't
|
||||||
/// need the metadata on disk. The goal of this method is to reduce disk
|
/// need the metadata on disk. The goal of this method is to reduce disk
|
||||||
/// operations.
|
/// operations.
|
||||||
///
|
///
|
||||||
/// Note that some platforms may simply implement this in terms of `poll_sync_all`.
|
/// Note that some platforms may simply implement this in terms of `sync_all`.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user