Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

error on simultaneous write from two atom instances #14

Open
paulpflug opened this issue May 30, 2015 · 0 comments
Open

error on simultaneous write from two atom instances #14

paulpflug opened this issue May 30, 2015 · 0 comments

Comments

@paulpflug
Copy link

Due to a problem with my package mocha-ui, I encountered a problem with CSON.writeFile.

I have two watchers on a file from two different atom instances, on change, a cson file is written, potential with different content. Quite often, the resulting file is a combination of both, which is of course invalid cson ;)

One of the files is larger, if this gets written first, then a fragment of the larger file is tailing the smaller file which is written a little bit later.

Maybe rather a problem of fs-plus or fs ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant