You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
The default behavior seems to be similar to calling fs.watch(file, { persistent: true }), which keeps the event loop alive until all watchers are closed. I would love to have the ability to make pathwatcher.watch non-persistent.
For what it's worth, I'm a Meteor core developer, and I'm trying to incorporate pathwatcher into the Meteor development server, to address meteor/meteor#2135.
Minimal repro:
node -e 'require("pathwatcher")'The default behavior seems to be similar to calling
fs.watch(file, { persistent: true }), which keeps the event loop alive until all watchers are closed. I would love to have the ability to makepathwatcher.watchnon-persistent.From brief examination, it seems like we need to be calling
uv_run(loop, UV_RUN_NOWAIT)somewhere, perhaps instead ofuv_async_init(uv_default_loop(), &g_async, MakeCallbackInMainThread), but I'm far from certain about that.For what it's worth, I'm a Meteor core developer, and I'm trying to incorporate
pathwatcherinto the Meteor development server, to address meteor/meteor#2135.