Fix a race condition in the file watcher.
Fix a race condition in file watcher.

It was possible for events to be added to the events controller after it
had been closed if the call to close() came in while a method was
waiting on an asynchronous callback.

R=cbracken@google.com

Review URL: https://codereview.chromium.org//1228703007 .
5 files changed
tree: 93338c10d527134a19c4bb7996574e94bf3f9f3b
  1. example/
  2. lib/
  3. test/
  4. .gitignore
  5. .test_config
  6. CHANGELOG.md
  7. codereview.settings
  8. LICENSE
  9. pubspec.yaml
  10. README.md
README.md

A file system watcher.

It monitors changes to contents of directories and sends notifications when files have been added, removed, or modified.