Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Issue: Wrap FileSystemWatcher to avoid race conditions [1378]

$
0
0
https://pytools.codeplex.com/workitem/2590

Create a fix that wraps FileSystemWatcher in our own class and implement an asynchronous Dispose(). If we queue the actual Dispose() on a background thread it can hang for as long as it likes until the program dies. The trick here is that we have to add a “IsDisposing” flag so we can recognise that we’re currently in this state, since otherwise there may be undetectable race conditions with file system events that are already in flight or come in before the Dispose completes.

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>