Use temporary file when writing to disk. call-with-atomic-output-file will take care of opening an output port and renaming the temporary file for us. It also (apparently) creates a lock so other processes and threads can't write to the temporary file at the same time.
Use temporary file when writing to disk.
call-with-atomic-output-file
will take care of opening an output port and renaming the temporary file for us. It also (apparently) creates a lock so other processes and threads can't write to the temporary file at the same time.