Summary
Helps limit the rate of an action to be within all of the defined rate limits, by suspending the calling thread until
the action may be executed without exceeding any of the limits. Warning: this class is not thread-safe!
Constructors
Waiter(params WaiterLimit[] limits) |
Constructor. |
|
Instance methods
void | |
Call this method every time before performing the limited action. If the action would exceed any of the limits,
the call will block until the action can be performed without exceeding any limits. |
Instance properties
LoggerBase | | Whenever a wait is triggered, a warning is reported through this logger. |
Instance fields
List<WaiterLimit> | | A list of limits to be observed. The waiter will ensure that *all* of these limits are satisfied. |