Skip to content

AsyncResultHandle.WaitFor(TimeSpan, Func<bool>)

WaitFor(TimeSpan, Func<bool>)

View source
public Task<bool> WaitFor(TimeSpan timeout, Func<bool> checkFlag)

Parameters

timeoutTimeSpan
checkFlagFunc<bool>

Returns

Returns true if operation completes before timeout