Skip to main content

co_write_yaml

Function co_write_yaml 

Source
pub async fn co_write_yaml<S: Serialize>(
    path: impl AsRef<Path>,
    content: &S,
) -> Result<()>
Available on crate features coroutine and fs and yaml only.
Expand description

Async version of write_yaml. The serialization part is synchronous, since it does not involve IO.