Stage::waitUntil()
Holds up the code that calls it until a condition is true; see waitSeconds(double).
Examples
Syntax
Java
.waitUntil(condition)
Scratch
wait until <condition>
Parameters
| Name | Data Type | Description |
|---|---|---|
| condition | BooleanSupplier | checked about every millisecond |
Return
void