Class: Rails::Application::Finisher::MutexHook
Relationships & Source Files | |
Inherits: | Object |
Defined in: | railties/lib/rails/application/finisher.rb |
Class Method Summary
- .new(mutex = Mutex.new) ⇒ MutexHook constructor
Instance Method Summary
Constructor Details
.new(mutex = Mutex.new) ⇒ MutexHook
# File 'railties/lib/rails/application/finisher.rb', line 144
def initialize(mutex = Mutex.new) @mutex = mutex end
Instance Method Details
#complete(_state)
[ GitHub ]# File 'railties/lib/rails/application/finisher.rb', line 152
def complete(_state) @mutex.unlock end
#run
[ GitHub ]# File 'railties/lib/rails/application/finisher.rb', line 148
def run @mutex.lock end