Fork me on GitHub
Show / Hide Table of Contents

Interface IAwaitableConstraint

Represents a time constraints that can be awaited

Namespace: RateLimiter
Assembly: RateLimiter.dll
Syntax
public interface IAwaitableConstraint

Methods

| Improve this Doc View Source

Clone()

Returns a new IAwaitableConstraint with same constraints but unused

Declaration
IAwaitableConstraint Clone()
Returns
Type Description
IAwaitableConstraint
| Improve this Doc View Source

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

Extension Methods

AwaitableConstraintExtension.Compose(IAwaitableConstraint, IAwaitableConstraint)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX