Class TaskExtensions
Static class containing extension methods for Task and Task<TResult> objects.
Namespace: Tableau.Migration
Assembly: Tableau.Migration.dll
Syntax
public static class TaskExtensions
Methods
AwaitResult<TResult>(Task<TResult>)
Get the results synchronously, applying best practices.
Declaration
public static TResult AwaitResult<TResult>(this Task<TResult> task)
Parameters
Type | Name | Description |
---|---|---|
Task<TResult> | task | The task to get synchronous results from. |
Returns
Type | Description |
---|---|
TResult | The task's result. |
Type Parameters
Name | Description |
---|---|
TResult | The result type. |