Method WaitForConditionOrTimeOutWithTimeTravel
WaitForConditionOrTimeOutWithTimeTravel(Func<bool>, int)
Waits for the function condition to return true or it will time out. Uses time travel to simulate this
for the given number of frames, simulating delta times at the application frame rate.
Declaration
public bool WaitForConditionOrTimeOutWithTimeTravel(Func<bool> checkForCondition, int maxTries = 60)
Parameters
Type |
Name |
Description |
Func<bool> |
checkForCondition |
|
int |
maxTries |
|
Returns
WaitForConditionOrTimeOutWithTimeTravel(IConditionalPredicate, int)
This version accepts an IConditionalPredicate implementation to provide
more flexibility for checking complex conditional cases. Uses time travel to simulate this
for the given number of frames, simulating delta times at the application frame rate.
Declaration
public bool WaitForConditionOrTimeOutWithTimeTravel(IConditionalPredicate conditionalPredicate, int maxTries = 60)
Parameters
Returns