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

Method for wrapping and logging any thrown task exceptions
Method for throwing any task exceptions even hidden cancellations
Parameters
preThrow
Optional action that calls prior to throwing an exception
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?