Syntax
sleep(seconds)Available in
- File scope
- Executable DCode bodies
Native C++
Calls std::this_thread::sleep_for directly. It blocks the callback thread and does not release the RAPID task transaction through the Lua managed-wait path. Avoid it in inline reactions and timing-critical tasks; use Lua for managed waits.
Example
sleep(1.0)