Skip to main content

write_to_file

Function write_to_file 

Source
pub async fn write_to_file(path: PathBuf, content: String) -> Result<()>
Expand description

Spawns a thread that writes content to path atomically using a temp file. Returns the JoinHandle so you can wait for it if desired.