method
busy_for_sharing?
v7.0.0 -
Show latest stable
- Class:
ActiveSupport::Concurrency::ShareLock
busy_for_sharing?(purpose)private
No documentation available.
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 209
def busy_for_sharing?(purpose)
(@exclusive_thread && @exclusive_thread != Thread.current) ||
@waiting.any? { |t, (_, c)| t != Thread.current && !c.include?(purpose) }
end