Task.WaitAsync Method (System.Threading.Tasks) (original) (raw)
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WaitAsync(TimeSpan, TimeProvider)
Source:
Source:
Source:
public:
System::Threading::Tasks::Task<TResult> ^ WaitAsync(TimeSpan timeout, TimeProvider ^ timeProvider);
public System.Threading.Tasks.Task<TResult> WaitAsync(TimeSpan timeout, TimeProvider timeProvider);
override this.WaitAsync : TimeSpan * TimeProvider -> System.Threading.Tasks.Task<'Result>
Public Function WaitAsync (timeout As TimeSpan, timeProvider As TimeProvider) As Task(Of TResult)
Parameters
Returns
The Task representing the asynchronous wait. It may or may not be the same instance as the current instance.
Applies to
WaitAsync(CancellationToken)
Source:
Source:
Source:
Source:
public:
System::Threading::Tasks::Task<TResult> ^ WaitAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<TResult> WaitAsync(System.Threading.CancellationToken cancellationToken);
override this.WaitAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
Public Function WaitAsync (cancellationToken As CancellationToken) As Task(Of TResult)
Parameters
Returns
The Task representing the asynchronous wait. It may or may not be the same instance as the current instance.
Applies to
WaitAsync(TimeSpan)
Source:
Source:
Source:
Source:
public:
System::Threading::Tasks::Task<TResult> ^ WaitAsync(TimeSpan timeout);
public System.Threading.Tasks.Task<TResult> WaitAsync(TimeSpan timeout);
override this.WaitAsync : TimeSpan -> System.Threading.Tasks.Task<'Result>
Public Function WaitAsync (timeout As TimeSpan) As Task(Of TResult)
Parameters
Returns
The Task representing the asynchronous wait. It may or may not be the same instance as the current instance.
Applies to
WaitAsync(TimeSpan, CancellationToken)
Source:
Source:
Source:
Source:
public:
System::Threading::Tasks::Task<TResult> ^ WaitAsync(TimeSpan timeout, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<TResult> WaitAsync(TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
override this.WaitAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
Public Function WaitAsync (timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of TResult)
Parameters
Returns
The Task representing the asynchronous wait. It may or may not be the same instance as the current instance.
Applies to
WaitAsync(TimeSpan, TimeProvider, CancellationToken)
Source:
Source:
Source:
public:
System::Threading::Tasks::Task<TResult> ^ WaitAsync(TimeSpan timeout, TimeProvider ^ timeProvider, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<TResult> WaitAsync(TimeSpan timeout, TimeProvider timeProvider, System.Threading.CancellationToken cancellationToken);
override this.WaitAsync : TimeSpan * TimeProvider * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
Public Function WaitAsync (timeout As TimeSpan, timeProvider As TimeProvider, cancellationToken As CancellationToken) As Task(Of TResult)
Parameters
Returns
The Task representing the asynchronous wait. It may or may not be the same instance as the current instance.