C# Class RabbitLink.Internals.Async.TaskExtensions

Afficher le fichier Open project: rabbit-link/rabbit-link

Méthodes publiques

Méthode 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 méthode

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

WaitAndUnwrapException() public static méthode

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

WaitCancellation() public static méthode

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

WaitWithoutException() public static méthode

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.
Résultat void