AsyncResultHandle.WaitFor(TimeSpan, Func<Boolean>) Method
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.
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)
Parameters
- timeout
- TimeSpan
Returns
Returns true
if operation completes before timeout