C# Class Hardly.Throttle

Afficher le fichier Open project: hardlydifficult/HardlyBot Class Usage Examples

Méthodes publiques

Méthode Description
ExecuteIfReady ( ulong key ) : bool
SleepTillReady ( ulong key ) : void
Throttle ( TimeSpan timeBetweenActions ) : System
TimeRemaining ( ulong key ) : TimeSpan

Private Methods

Méthode Description
TimeToSleepFor ( ulong key ) : int

Method Details

ExecuteIfReady() public méthode

public ExecuteIfReady ( ulong key ) : bool
key ulong
Résultat bool

SleepTillReady() public méthode

public SleepTillReady ( ulong key ) : void
key ulong
Résultat void

Throttle() public méthode

public Throttle ( TimeSpan timeBetweenActions ) : System
timeBetweenActions TimeSpan
Résultat System

TimeRemaining() public méthode

public TimeRemaining ( ulong key ) : TimeSpan
key ulong
Résultat TimeSpan