共用方式為


AsyncResultHandle.WaitFor(TimeSpan, Func<Boolean>) 方法

定義

public System.Threading.Tasks.Task<bool> WaitFor (TimeSpan timeout, Func<bool> checkFlag);
member this.WaitFor : TimeSpan * Func<bool> -> System.Threading.Tasks.Task<bool>
Public Function WaitFor (timeout As TimeSpan, checkFlag As Func(Of Boolean)) As Task(Of Boolean)

參數

timeout
TimeSpan
checkFlag
Func<Boolean>

傳回

true如果作業在逾時之前完成,則傳回

適用於