AFTER

AFTER [ Delay ] DO Statement

Since 3.21

Executes a statement after Delay seconds, internally using a timer.

If Delay is not specified, or if is zero, then the statement is executed as soon as possible, i.e. at the next run of the event loop. No timer is used in that case.

This instruction internally creates a global variable used as a lock, so that if you call the same AFTER instruction again, it will be ignored until the previous one has been triggered.

See also