Delay & Schedule
Pause execution, schedule one-time future jobs, and set recurring delays. Use SLEEP for inline pauses, DELAY for deferred execution, and SCHEDULE for a one-shot future run.
| Verb | Description |
|---|---|
SLEEP "duration" | Pause for a duration: "500ms", "1s", "2m", "1h" |
DELAY n SECONDS OPEN NEST ... CLOSE NEST | Run block after N seconds (asynchronous — returns immediately) |
DELAY n MINUTES OPEN NEST ... CLOSE NEST | Run block after N minutes |
DELAY n MILLISECONDS OPEN NEST ... CLOSE NEST | Run block after N milliseconds |
SCHEDULE "datetime" OPEN NEST ... CLOSE NEST | Run block once at a specific ISO datetime |
REPEAT n TIMES OPEN NEST ... CLOSE NEST | Execute a block N times sequentially |
SLEEP
EMIT "Starting..."
AFTER SLEEP "2s"
AFTER EMIT "Done after 2 seconds"
Try it ›
DELAY — deferred asynchronous block
EMIT "Job started"
AFTER DELAY 30 SECONDS
OPEN NEST
WEBHOOK ?result AT "https://api.example.com/callback"
CLOSE NEST
SCHEDULE — one-shot future job
SCHEDULE "2026-12-31T23:59:00Z"
OPEN NEST
BROADCAST ?new_year_msg TO "all" AND "vip"
CLOSE NEST
AFTER EMIT "New Year message scheduled"
REPEAT
CALCULATE "0" SET ?total
REPEAT 5 TIMES
OPEN NEST
CALCULATE "?total + 1" SET ?total
CLOSE NEST
AFTER EMIT ?total
Try it ›