argo/medea — pull request #32 by kesla (2014-07-29 09:41:16+00:00)
Title: Concurrent writes and reads

Hey,

I added tests for concurrently writing & reading a larger amount of data, and the tests failed beause we we're using `fs.write` directly. Using writeStreams for the active file fixed those problems.

But using streams also means that `DataFile#closeForWriting` couldn't be synchronous anymore, and therefore I had to change a couple of other methods as well to be asynchronous rather than synchronous.