tools/fileMutationQueue
Serialization of edit and write mutations of one file within this process.
Since v0.0.0
withFileMutationQueue
Section titled “withFileMutationQueue”Run body once every earlier mutation of the same file (same file system ID and canonical path, whichever
environment object the call got) has ended, interrupted ones included. Other files and other file systems never
wait. Not a lock against bash or other processes.
Signature
declare const withFileMutationQueue: <A, E, R>( env: ExecEnv, path: string, body: Effect.Effect<A, E, R>) => Effect.Effect<A, E | FileError, R>Since v0.0.0