A rate used for throttling.
the number of calls that may take place in a period
the length of the period
Helper for some syntactic sugar.
Set the rate of a throttler.
the rate at which messages will be delivered to the target of the throttler
Set the target of a throttler.
None, the throttler will stop delivering messages and the messages already received
but not yet delivered, as well as any messages received in the future will be queued
and eventually be delivered when a new target is set. If
target is not
None, the currently queued messages
as well as any messages received in the future will be delivered to the new target at a rate not exceeding the current throttler's rate.