Skip to main content

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
TypeNameDescription
System.Threading.Tasks.TasktaskThe 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
TypeNameDescription
System.Threading.Tasks.TasktaskThe target Task
System.Threading.CancellationTokencancellationTokenA cancellation token