Skip to content

tests

Functions

Name Description
waitForCondition Waits, for a maximum amount of time, for a condition checked by a given function.

Function Details

waitForCondition

bool waitForCondition(std::function<bool()> checker, unsigned int timeoutMillis)

Waits, for a maximum amount of time, for a condition checked by a given function.

checker : the function that will evaluate if the target condition has been reached.

timeoutMillis : the maximum amount of time to wait for the condition (in milliseconds).

Return : true if the condition has been reached; false if time expired before the condition could have been reached.