app/fsevents.rb
def unwatch
    if @watcher
      @watcher = nil
      @enabled = false
    end
  end
# While garbage collection should properly deallocate the CDEvents object and
# stop events, we need a way to stop them immediately.  Can't call `dealloc`,
# so set watcher to nil
#------------------------------------------------------------------------------
While garbage collection should properly deallocate the CDEvents object and
stop events, we need a way to stop them immediately.  Can't call `dealloc`,
so set watcher to nil
While garbage collection should properly deallocate the CDEvents object and stop events we need a way to stop them immediately . Can ' t call ` dealloc ` so set watcher to nil
def unwatch
    if @watcher
      @watcher = nil
      @enabled = false
    end
  end
def unwatch if @watcher @watcher = nil @enabled = false end end
While garbage collection should properly deallocate the CDEvents object and
stop events, we need a way to stop them immediately.
While garbage collection should properly deallocate the CDEvents object and stop events we need a way to stop them immediately .