instance method
busy_for_sharing?
Ruby on Rails edge
Since v5.0.7.2 Private — implementation detail, not part of the public APISignature
busy_for_sharing?(purpose)
No documentation comment.
Parameters
-
purposereq
Source
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 218
def busy_for_sharing?(purpose)
owner = current_owner
(@exclusive_owner && @exclusive_owner != owner) ||
@waiting.any? { |o, (_, c)| o != owner && !c.include?(purpose) }
end
Defined in activesupport/lib/active_support/concurrency/share_lock.rb line 218
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Concurrency::ShareLock