TaskHelpers.WaitForCompletionNoSpin 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WaitForCompletionNoSpin(Task) | |
WaitForCompletionNoSpin(Task, TimeSpan) | |
WaitForCompletionNoSpin<TResult>(Task<TResult>) |
WaitForCompletionNoSpin(Task)
public:
[System::Runtime::CompilerServices::Extension]
static void WaitForCompletionNoSpin(System::Threading::Tasks::Task ^ task);
public static void WaitForCompletionNoSpin (this System.Threading.Tasks.Task task);
static member WaitForCompletionNoSpin : System.Threading.Tasks.Task -> unit
<Extension()>
Public Sub WaitForCompletionNoSpin (task As Task)
參數
- task
- Task
適用於
WaitForCompletionNoSpin(Task, TimeSpan)
public:
[System::Runtime::CompilerServices::Extension]
static bool WaitForCompletionNoSpin(System::Threading::Tasks::Task ^ task, TimeSpan timeout);
public static bool WaitForCompletionNoSpin (this System.Threading.Tasks.Task task, TimeSpan timeout);
static member WaitForCompletionNoSpin : System.Threading.Tasks.Task * TimeSpan -> bool
<Extension()>
Public Function WaitForCompletionNoSpin (task As Task, timeout As TimeSpan) As Boolean
參數
- task
- Task
- timeout
- TimeSpan
傳回
適用於
WaitForCompletionNoSpin<TResult>(Task<TResult>)
public:
generic <typename TResult>
[System::Runtime::CompilerServices::Extension]
static TResult WaitForCompletionNoSpin(System::Threading::Tasks::Task<TResult> ^ task);
public static TResult WaitForCompletionNoSpin<TResult> (this System.Threading.Tasks.Task<TResult> task);
static member WaitForCompletionNoSpin : System.Threading.Tasks.Task<'Result> -> 'Result
<Extension()>
Public Function WaitForCompletionNoSpin(Of TResult) (task As Task(Of TResult)) As TResult
類型參數
- TResult
參數
- task
- Task<TResult>
傳回
TResult