Class: RailsDevelopmentBoost::Async::Reactor

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_development_boost/async.rb

Instance Method Summary collapse

Constructor Details

#initializeReactor

Returns a new instance of Reactor.



64
65
66
# File 'lib/rails_development_boost/async.rb', line 64

def initialize
  @watcher = FSEvent.new
end

Instance Method Details

#start!Object



68
69
70
# File 'lib/rails_development_boost/async.rb', line 68

def start!
  @thread = Thread.new { @watcher.run }
end