instance method
with_concurrency_limit
Ruby on Rails 2.9.0
Since v2.9.0 Last seen in v2.11.0 PrivateSignature
with_concurrency_limit(&block)
No documentation comment.
Parameters
-
blockblock
Source
# File lib/kamal/sshkit_with_ext.rb, line 159
def with_concurrency_limit(&block)
if self.class.start_semaphore
self.class.start_semaphore.acquire(&block)
else
yield
end
end
Defined in lib/kamal/sshkit_with_ext.rb line 159
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Netssh::LimitConcurrentStartsInstance