Creates a new AcEdConditionWaiter.
The condition function to check periodically.
The action to execute once when the condition is met or timeout occurs.
How often (ms) to check the condition. Default: 1000 ms.
Maximum time (ms) to wait before executing the action. Default: 0 (no timeout).
Checks whether the waiter is currently active.
Starts checking the condition at the defined interval. Executes the action once when the condition becomes true or when timeout is reached.
Stops all checking without triggering the action.
A utility class that waits until a specified condition is met or a timeout occurs, and then executes a single action.
Example