Lean  $LEAN_TAG$
QuantConnect.Util.RateLimit.ISleepStrategy Interface Reference

Defines a strategy for sleeping the current thread of execution. This is currently used via the ITokenBucket.Consume in order to wait for new tokens to become available for consumption. More...

Inheritance diagram for QuantConnect.Util.RateLimit.ISleepStrategy:
[legend]

Public Member Functions

void Sleep ()
 Sleeps the current thread in an implementation specific way and for an implementation specific amount of time More...
 

Detailed Description

Defines a strategy for sleeping the current thread of execution. This is currently used via the ITokenBucket.Consume in order to wait for new tokens to become available for consumption.

Definition at line 22 of file ISleepStrategy.cs.

Member Function Documentation

◆ Sleep()

void QuantConnect.Util.RateLimit.ISleepStrategy.Sleep ( )

Sleeps the current thread in an implementation specific way and for an implementation specific amount of time

Implemented in QuantConnect.Util.RateLimit.ThreadSleepStrategy, and QuantConnect.Util.RateLimit.BusyWaitSleepStrategy.


The documentation for this interface was generated from the following file: