Compartilhar via


AsyncResultHandle.WaitFor(TimeSpan, Func<Boolean>) Método

Definição

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)

Parâmetros

timeout
TimeSpan
checkFlag
Func<Boolean>

Retornos

Retorna true se a operação for concluída antes do tempo limite

Aplica-se a