IAdaptativeConcurrencyLimiter.ExecuteAsync method (1 of 2)
Responsible for managing the current request.
public Task ExecuteAsync(Func<Task> function, CancellationToken cancellationToken = default)
parameter | description |
---|---|
function | A function that represents the request that has been processed. |
cancellationToken | A cancellation token is used to signal that the running operation should be stopped. |
See Also
- interface IAdaptativeConcurrencyLimiter
- namespace Farfetch.LoadShedding.Limiters
IAdaptativeConcurrencyLimiter.ExecuteAsync method (2 of 2)
Responsible for managing the current request.
public Task ExecuteAsync(Priority priority, Func<Task> function,
CancellationToken cancellationToken = default)
parameter | description |
---|---|
priority | The priority of the execution of the task. |
function | A function that represents the request that has been processed. |
cancellationToken | A cancellation token is used to signal that the running operation should be stopped. |
See Also
- enum Priority
- interface IAdaptativeConcurrencyLimiter
- namespace Farfetch.LoadShedding.Limiters