instance method
busy_for_sharing?
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
busy_for_sharing?(purpose)
No documentation comment.
Parameters
-
purposereq
Source
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 210
def busy_for_sharing?(purpose)
(@exclusive_thread && @exclusive_thread != Thread.current) ||
@waiting.any? { |t, (_, c)| t != Thread.current && !c.include?(purpose) }
end
Defined in activesupport/lib/active_support/concurrency/share_lock.rb line 210
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Concurrency::ShareLock