wait %n:NUMBER% (tick|second|minute|hour|day)[s] — Blocks

wait %n:NUMBER% (tick|second|minute|hour|day)[s]
wait for %n:NUMBER% (tick|second|minute|hour|day)[s]
after %n:NUMBER% (tick|second|minute|hour|day)[s]
in %n:NUMBER% (tick|second|minute|hour|day)[s]
Scheduling1.0.0

Description

Schedules the enclosed block to run after a delay. Accepts ticks, seconds, minutes, hours, or days. Can be cancelled from within using the cancel statement. Can be used at the top level.

Allowed Contexts

Root LevelInside Block

Examples

wait 20 ticks: broadcast "1 second later!"
Analyzing pattern:

All Possible Usages (10)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

wait <n> tick
wait <n> second
wait <n> minute
wait <n> hour
wait <n> day
wait <n> tick s
wait <n> second s
wait <n> minute s
wait <n> hour s
wait <n> day s

Related (Scheduling)