Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.Waiter

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.
Waiter(LoggerBase log, params WaiterLimit[] limits)

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

LoggerBaseWhenever 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.