Skip to content

Commit

Permalink
Improve readme explanation of benefits of async
Browse files Browse the repository at this point in the history
Fixes #42
  • Loading branch information
sindresorhus committed Sep 21, 2019
1 parent ca13047 commit e2a428c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -8,7 +8,7 @@ It's only ~200 bytes minified and gzipped. [I'm not fanatic about keeping the si

It works in Node.js and the browser (using a bundler).

Emitting events asynchronously is important for production code where you want the least amount of synchronous operations.
Emitting events asynchronously is important for production code where you want the least amount of synchronous operations. Since JavaScript is single-threaded, no other code can run while doing synchronous operations. For Node.js, that means it will block other requests, defeating the strength of the platform, which is scalability through async. In the browser, a synchronous operation could potentially cause lags and block user interaction.


## Install
Expand Down

0 comments on commit e2a428c

Please sign in to comment.