pub async fn sync_all(&mut self) -> io::Result<()> {
        self.complete_inflight().await;

        let std = self.std.clone();
        asyncify(move || std.sync_all()).await
    }
/// Attempts to sync all OS-internal metadata to disk.
///
/// This function will attempt to ensure that all in-core data reaches the
/// filesystem before returning.
///
/// # Examples
///
/// ```no_run
/// use tokio::fs::File;
/// use tokio::prelude::*;
///
/// # async fn dox() -> std::io::Result<()> {
/// let mut file = File::create("foo.txt").await?;
/// file.write_all(b"hello, world!").await?;
/// file.sync_all().await?;
/// # Ok(())
/// # }
/// ```
Attempts to sync all OS-internal metadata to disk.
This function will attempt to ensure that all in-core data reaches the
filesystem before returning.
Attempts to sync all OS - internal metadata to disk . This function will attempt to ensure that all in - core data reaches the filesystem before returning .
pub async fn sync_all(&mut self) -> io::Result<()> {
        self.complete_inflight().await;
        let std = self.std.clone();
        asyncify(move || std.sync_all()).await
    }
pub async fn sync_all ( & mut self ) -> io :: Result < ( ) > { self . complete_inflight ( ) . await ; let std = self . std . clone ( ) ; asyncify ( move | | std . sync_all ( ) ) . await }
Attempts to sync all OS-internal metadata to disk.
Attempts to sync all OS - internal metadata to disk .
&mut self
&mut self
examples
```no_run
use tokio::fs::File;
use tokio::prelude::*.
` ` ` no_run use tokio :: fs :: File ; use tokio :: prelude :: * .
async fn dox() -> std::io::result<()> {
let mut file = File::create("foo.txt").await?;
file.write_all(b"hello, world!").await?;
file.sync_all().await?.
let mut file = File :: create ( " foo . txt " ) . await? ; file . write_all ( b " hello world! " ) . await? ; file . sync_all () . await? .
ok(())
None
}
None