DCode

Covers Engine 2.0.0

wait_until

Wait for continuous truth for time seconds.

Wait for continuous truth for time seconds. A positive timeout raises an execution error; zero disables expiry. In a timeline bucket, only that bucket waits; the mission clock and other due buckets continue. A task hold pauses duration and timeout accounting; a clock hold does not. For a nonblocking timed condition in a periodic task, loop or channel calculation, use when(condition, time=seconds): and nest once: inside it for one-time work in a runtime section.

Syntax

wait_until(condition, time=0, timeout=0)

Available in

  • File scope
  • Executable DCode bodies

Native C++

Reevaluates the condition live; continuous truth resets on false, and holds pause time and timeout accounting.

Example

wait_until(|ready| == 1, 0, 0)