async-listener icon indicating copy to clipboard operation
async-listener copied to clipboard

async-listener breaks fs.unwatchFile

Open hayes opened this issue 10 years ago • 1 comments
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

hayes avatar Dec 29 '14 21:12 hayes

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.

othiym23 avatar Jan 17 '15 09:01 othiym23