Skip to main content

IAdaptativeConcurrencyLimiter.ExecuteAsync method (1 of 2)

Responsible for managing the current request.

public Task ExecuteAsync(Func<Task> function, CancellationToken cancellationToken = default)
parameterdescription
functionA function that represents the request that has been processed.
cancellationTokenA cancellation token is used to signal that the running operation should be stopped.

See Also


IAdaptativeConcurrencyLimiter.ExecuteAsync method (2 of 2)

Responsible for managing the current request.

public Task ExecuteAsync(Priority priority, Func<Task> function, 
CancellationToken cancellationToken = default)
parameterdescription
priorityThe priority of the execution of the task.
functionA function that represents the request that has been processed.
cancellationTokenA cancellation token is used to signal that the running operation should be stopped.

See Also