C# Class RabbitLink.Internals.Async.TaskExtensions

Datei anzeigen Open project: rabbit-link/rabbit-link

Public Methods

Method Description
WaitAndUnwrapException ( Task task ) : void

Waits for the task to complete, unwrapping any exceptions.

WaitAndUnwrapException ( Task task ) : TResult

Waits for the task to complete, unwrapping any exceptions.

WaitCancellation ( CancellationToken token ) : Task

Creates Task which will be completed on token cancel

WaitWithoutException ( Task task ) : void

Waits for the task to complete, but does not raise task exceptions. The task exception (if any) is unobserved.

Method Details

WaitAndUnwrapException() public static method

Waits for the task to complete, unwrapping any exceptions.
public static WaitAndUnwrapException ( Task task ) : void
task Task The task. May not be null.
return void

WaitAndUnwrapException() public static method

Waits for the task to complete, unwrapping any exceptions.
public static WaitAndUnwrapException ( Task task ) : TResult
task Task The task. May not be null.
return TResult

WaitCancellation() public static method

Creates Task which will be completed on token cancel
public static WaitCancellation ( CancellationToken token ) : Task
token CancellationToken token watch on
return Task

WaitWithoutException() public static method

Waits for the task to complete, but does not raise task exceptions. The task exception (if any) is unobserved.
public static WaitWithoutException ( Task task ) : void
task Task The task. May not be null.
return void