API reference
API reference
Select your platform
No SDKs available
No versions available

TaskExtensions Class

A static class used for adding new Task options

Static Methods

WhenLessThan ( tasks , max )
A task that completes when less than the specified max tasks are running
Signature
static Task Meta.WitAi.TaskExtensions.WhenLessThan(this ICollection< Task > tasks, int max)
Parameters
tasks: this ICollection< Task >
max: int
Returns
Task
WhenLessThan ( tasks , max , cancellationToken )
A task that completes when less than the specified max tasks are running
Signature
static Task Meta.WitAi.TaskExtensions.WhenLessThan(this ICollection< Task > tasks, int max, CancellationToken cancellationToken)
Parameters
tasks: this ICollection< Task >
max: int
cancellationToken: CancellationToken
Returns
Task