The fs docs provide a great overview of the API, but information on their low-level operations is pretty sparse.
For example, I can't tell how two competing fs.writeFileSync calls from different processes will interact. Will an error be thrown by whichever process loses the race for the lock? Will the second process just wait for the lock and then overwrite the previous contents?
For reference, here are two issues would have benefited from these sorts of details:
Reactions are currently unavailable
The fs docs provide a great overview of the API, but information on their low-level operations is pretty sparse.
For example, I can't tell how two competing fs.writeFileSync calls from different processes will interact. Will an error be thrown by whichever process loses the race for the lock? Will the second process just wait for the lock and then overwrite the previous contents?
For reference, here are two issues would have benefited from these sorts of details: