Tasks and time

The date and time of now, and tasks: work that waits, for the network or for a time, while the rest of the program goes on. See tasks and the network.

now

The date and time now.

now
  • /year

  • /month

  • /day

  • /time

  • /zone

  • /date

  • /weekday

  • /yearday

  • /precise

  • /utc

wait

Waits a number of seconds, or for tasks to finish; other tasks run meanwhile.

wait value
  • value (number! time! handle! block!)

delay

Evaluates a block once, after a while; gives a handle.

delay time body
  • time (number! time!)

  • body (block!)

every

Evaluates a block again and again, every so often; gives a handle.

every time body
  • time (number! time!)

  • body (block!)

spawn

Starts a task that evaluates a block on its own; gives a handle at once.

spawn body
  • body (block!)

cancel

Stops a task, timer or request.

cancel target
  • target (handle!)