Sha256: d64bbca93408eac72ac75c5c94bf7fa714fefeb4dd497f5330f3908f88ab3344
Contents?: true
Size: 222 Bytes
Versions: 5
Compression:
Stored size: 222 Bytes
Contents
class ProcThresholdWorker include Sidekiq::Worker sidekiq_options throttle: { threshold: Proc.new { |user_id, limit| limit }, period: 1.minute } def perform(user_id, limit) puts user_id puts limit end end
Version data entries
5 entries across 5 versions & 1 rubygems