Edit

Share via


AsyncResultHandle.WaitFor(TimeSpan, Func<Boolean>) Method

Definition

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
checkFlag
Func<Boolean>

Returns

Returns true if operation completes before timeout

Applies to