public static class TaskExtensions
Extension methods for tasks.
Namespace
Google.Api.GaxAssembly
Google.Api.Gax.dll
Methods
ResultWithUnwrappedExceptions<T>(Task<T>)
public static T ResultWithUnwrappedExceptions<T>(this Task<T> task)
Synchronously waits for the given task to complete, and returns the result. Any AggregateException thrown is unwrapped to the first inner exception.
T
The result of the completed task.
T
The result type of the task
WaitWithUnwrappedExceptions(Task)
public static void WaitWithUnwrappedExceptions(this Task task)
Synchronously waits for the given task to complete. Any AggregateException thrown is unwrapped to the first inner exception.
WaitWithUnwrappedExceptions(Task, int)
public static bool WaitWithUnwrappedExceptions(this Task task, int millisecondsTimeout)
Synchronously waits for the given task to complete. Any AggregateException thrown is unwrapped to the first inner exception.
WaitWithUnwrappedExceptions(Task, int, CancellationToken)
public static bool WaitWithUnwrappedExceptions(this Task task, int millisecondsTimeout, CancellationToken cancellationToken)
Synchronously waits for the given task to complete. Any AggregateException thrown is unwrapped to the first inner exception.
task
millisecondsTimeout
cancellationToken
WaitWithUnwrappedExceptions(Task, CancellationToken)
public static void WaitWithUnwrappedExceptions(this Task task, CancellationToken cancellationToken)
Synchronously waits for the given task to complete. Any AggregateException thrown is unwrapped to the first inner exception.
task
cancellationToken
WaitWithUnwrappedExceptions(Task, TimeSpan)
public static bool WaitWithUnwrappedExceptions(this Task task, TimeSpan timeout)
Synchronously waits for the given task to complete. Any AggregateException thrown is unwrapped to the first inner exception.

