Update README.md

This commit is contained in:
AJ ONeal 2013-09-02 18:25:49 -05:00
parent 5a5e0397d7
commit 98b8f21ba9
1 changed files with 4 additions and 1 deletions

View File

@ -82,10 +82,13 @@ Both Asynchronous and Synchronous versions are provided.
### Sync
Note: You **can't use EventEmitter** if you want truly synchronous walker
(although it's synchronous, it appears not to be due to the use of `process.nextTick()`).
(although it's synchronous under the hood, it appears not to be due to the use of `process.nextTick()`).
Instead **you must use `options.listeners`** for truly synchronous walker.
Although the sync version uses all of the `fs.readSync`, `fs.readdirSync`, and other sync methods,
I don't think I can prevent the `process.nextTick()` that `EventEmitter` calls.
```javascript
(function () {
"use strict";