Module atomic

Module atomic 

Source
Expand description

Atomic file write operations using temp-and-rename strategy.

This module provides safe, atomic file writing that prevents corruption from interrupted writes.

Functionsยง

atomic_write
Atomically writes bytes to a file using a write-then-rename strategy.
atomic_write_multiple
Writes multiple files atomically in parallel.
safe_write
Safely writes a string to a file using atomic operations.