Interface IAwaitableConstraint
Represents a time constraints that can be awaited
Namespace: RateLimiter
Assembly: RateLimiter.dll
Syntax
public interface IAwaitableConstraint
Methods
| Improve this Doc View SourceClone()
Returns a new IAwaitableConstraint with same constraints but unused
Declaration
IAwaitableConstraint Clone()
Returns
Type | Description |
---|---|
IAwaitableConstraint |
WaitForReadiness(CancellationToken)
returns a task that will complete once the constraint is fulfilled
Declaration
Task<IDisposable> WaitForReadiness(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | Cancel the wait |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.IDisposable> | A disposable that should be disposed upon task completion |