Skip to content

Commit

Permalink
Update blocking-vs-non-blocking.md (#1921)
Browse files Browse the repository at this point in the history
* Update blocking-vs-non-blocking.md 

Fixed "Dangers of Mixing Blocking and Non-Blocking Code" example explanation.

* Update blocking-vs-non-blocking.md
  • Loading branch information
PatrickUT authored and ZYSzys committed Dec 7, 2018
1 parent ed01538 commit a6e5107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locale/en/docs/guides/blocking-vs-non-blocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fs.unlinkSync('/file.md');

In the above example, `fs.unlinkSync()` is likely to be run before
`fs.readFile()`, which would delete `file.md` before it is actually read. A
better way to write this that is completely **non-blocking** and guaranteed to
better way to write this, which is completely **non-blocking** and guaranteed to
execute in the correct order is:


Expand Down

0 comments on commit a6e5107

Please sign in to comment.