Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
joobq
v0.4.1
JoobQ
APIHandler
APIServer
BaseQueue
Configure
DeadLetter
DeadLetterManager
ExponentialBackoff
FailHandler
GlobalStats
Job
Status
JobSchemaRegistry
Metrics
MetricsProvider
OvertimeSeries
Series
SeriesData
Queue
QueueMetrics
RedisStore
Scheduler
RecurringJobs
StatsUtils
Store
Throttler
Timeout
TimeoutError
Worker
WorkerManager
JSON
Schema
Serializable
Generated using Crystal 1.14.0
2024-11-20 10:57:20 UTC
class
JoobQ::
Throttler
JoobQ::Throttler
Reference
Object
Overview
Throttler class to handle rate limiting
Defined in:
joobq/throttler.cr
Constructors
.new
(throttle_limit : NamedTuple(limit: Int32, period: Time::Span))
Instance Method Summary
#throttle
Constructor Detail
def self.
new
(throttle_limit : NamedTuple(limit: Int32, period: Time::Span))
#
[
View source
]
Instance Method Detail
def
throttle
#
[
View source
]