Method WaitForCondition
WaitForCondition(Func<bool>, ResultWrapper<bool>, float, int)
Waits for a predicate condition to be met
Declaration
public static IEnumerator WaitForCondition(Func<bool> predicate, NetcodeIntegrationTestHelpers.ResultWrapper<bool> result = null, float timeout = 4, int minFrames = 1)
Parameters
Type | Name | Description |
---|---|---|
Func<bool> | predicate | The predicate to wait for |
NetcodeIntegrationTestHelpers.ResultWrapper<bool> | result | The result. If null, it will fail if the predicate is not met |
float | timeout | |
int | minFrames | The min frames to wait for |
Returns
Type | Description |
---|---|
IEnumerator |