|Manuals

waitForLoop

The waitForLoop method initiates a waitFor cycle to retrieve asynchronous screens (regardless the order in which the screens arrive).

Unlike waitFor method, waitForLoop processes the matched rule and continues running, waiting for a new match.

The waitForLoop matching cycle can be terminated by calling waitForBreak.

Call Parameters

Parameter name Parameter type Explanation
matches Javascript object array An array containing a set of matching objects.
fail function Callback to be called when the match fails.
timeout integer Time to wait for the match, in milliseconds.

Return Object

This method does not return any object.

See Also