Class TaskExtensions
Extensions for Tasks
Assembly: Meadow.dll
View Source
Declaration
public static class TaskExtensions
Methods
RethrowUnhandledExceptions(Task)
Force a faulted Task to re-throw its exception on the caller thread.
View Source
Declaration
public static void RethrowUnhandledExceptions(this Task task)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.Tasks.Task | task | The target Task |
RethrowUnhandledExceptions(Task, CancellationToken)
Force a faulted Task to re-throw its exception on the caller thread.
View Source
Declaration
public static void RethrowUnhandledExceptions(this Task task, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.Tasks.Task | task | The target Task |
System.Threading.CancellationToken | cancellationToken | A cancellation token |