mirror of
https://github.com/atom/atom.git
synced 2026-01-26 23:38:48 -05:00
.dispose() all subscribers on a NativeWatcher
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user