TaskHelpers.AwaitWithTimeout(Task, TimeSpan) Method

Definition

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ AwaitWithTimeout(System::Threading::Tasks::Task ^ task, TimeSpan timeout);
public static System.Threading.Tasks.Task<bool> AwaitWithTimeout (this System.Threading.Tasks.Task task, TimeSpan timeout);
static member AwaitWithTimeout : System.Threading.Tasks.Task * TimeSpan -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function AwaitWithTimeout (task As Task, timeout As TimeSpan) As Task(Of Boolean)

Parameters

task
Task
timeout
TimeSpan

Returns

Applies to