async-listener
async-listener copied to clipboard
async-listener breaks fs.unwatchFile
trafficstars
wrapping up the callback for fs.watchFile prevents you from removing that watch handler, since passing in the unwrapped function will not allow you to remove the wrapped handler
This is probably going to take some emitter-listener levels of monkeypatching to work around, although I doubt there's any way it can be more complicated than what I had to do to get .on() working properly with Streams.
Thanks for the report! I'll start thinking about how to address this.