API reference

TaskExtensions Class

A static class used for adding new Task options

Static Member Functions

static void WrapErrors
( this Task task )
Causes a task to timeout after a given amount of time in ms. The task's result will be an error message
Parameters
task
The task to wait for
ms
The amount of time to wait
Returns
Returns true if this task ran to completion without timing out
Exceptions
AggregateException
A task that completes when less than the specified max tasks are running
A task that completes when less than the specified max tasks are running