Skip to main content

co_write_json

Function co_write_json 

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

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