123456789_123456789_123456789_123456789_123456789_

Class: Rails::Application::Finisher::MonitorHook

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: railties/lib/rails/application/finisher.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(monitor = Monitor.new) ⇒ MonitorHook

[ GitHub ]

  
# File 'railties/lib/rails/application/finisher.rb', line 97

def initialize(monitor = Monitor.new)
  @monitor = monitor
end

Instance Method Details

#complete(_state)

[ GitHub ]

  
# File 'railties/lib/rails/application/finisher.rb', line 105

def complete(_state)
  @monitor.exit
end

#run

[ GitHub ]

  
# File 'railties/lib/rails/application/finisher.rb', line 101

def run
  @monitor.enter
end