.dispose() all subscribers on a NativeWatcher

This commit is contained in:
Ash Wilson
2017-06-21 10:21:40 -04:00
parent 21e381033c
commit baf71492a2

View File

@@ -105,6 +105,11 @@ class NativeWatcher {
this.emitter.emit('did-stop')
}
// Private: Detach any event subscribers.
dispose () {
this.emitter.dispose()
}
// Private: Callback function invoked by the native watcher when a debounced group of filesystem events arrive.
// Normalize and re-broadcast them to any subscribers.
//