Permalink
Browse files

Doc fix for fs.write

Closes GH-808
Closes GH-811
  • Loading branch information...
1 parent f0d0fcc commit 5e78f57087908005a274fd3f58c316be5d8b23f4 Trevor Burnham committed with ry Mar 19, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 doc/api/fs.markdown
View
@@ -230,6 +230,10 @@ See pwrite(2).
The callback will be given two arguments `(err, written)` where `written`
specifies how many _bytes_ were written.
+Note that it is unsafe to use `fs.write` multiple times on the same file
+without waiting for the callback. For this scenario,
+`fs.createWriteStream` is strongly recommended.
+
### fs.writeSync(fd, buffer, offset, length, position)
Synchronous version of buffer-based `fs.write()`. Returns the number of bytes

0 comments on commit 5e78f57

Please sign in to comment.