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 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
Did you find this page helpful?
Thumbs up icon
Thumbs down icon