Module: Sidekiq::Throttled::Strategy::Base

Included in:
Concurrency, Threshold
Defined in:
lib/sidekiq/throttled/strategy/base.rb

Instance Method Summary collapse

Instance Method Details

#limit(job_args = nil) ⇒ Object



7
8
9
# File 'lib/sidekiq/throttled/strategy/base.rb', line 7

def limit(job_args = nil)
  @limit.respond_to?(:call) ? @limit.call(*job_args) : @limit
end