Method AsyncResult():wait() Foundation

Waits for the operation to complete with optional timeout.

Syntax
:wait( <nWaitTime> ) --> lFinished
Parameters
<nWaitTime>
Optional - Maximum time to wait in milliseconds.
Return

.T. if the operation completed (success or error) within the timeout period, .F. if the timeout expired before completion.

Description

Blocks the current thread until the AsyncResult transitions out of the "waiting" state (either to "finished" or "error"). An optional timeout can be specified to limit the waiting time.

If a timeout is specified and the operation does not complete within the timeout period, the method returns .F. (false). Otherwise, it returns .T. (true) when the operation completes, regardless of whether it succeeded or failed.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.