method
wait_for
v6.0.0 -
Show latest stable
- Class:
ActiveSupport::Concurrency::ShareLock
wait_for(method)private
No documentation available.
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 219
def wait_for(method)
@sleeping[Thread.current] = method
@cv.wait_while { yield }
ensure
@sleeping.delete Thread.current
end