From 98b8f21ba9ea2397fb50a1b4adb60b79b1d90204 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 2 Sep 2013 18:25:49 -0500 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e13dd2d..189855a 100644 --- a/README.md +++ b/README.md @@ -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";