REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: wait

wait  value  /all

Waits for a duration, port, or both.

Arguments:

value [number! time! port! block! none!]

Refinements:

/all - Returns all in a block

See also:

time!   date!  

Description

If the value is a TIME, delay for that period. If the value is a DATE (with time), wait until then. If the value is an INTEGER or DECIMAL, wait that number of seconds. If the value is a PORT, wait for an event from that port. If a block is specified, wait for any of the times or ports to occur. Return the port that caused the wait to complete or return NONE if the timeout occurred.

print now/time
17:48:19
wait 1
print now/time
17:48:22
wait 0:00:01
print now/time
17:48:23


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin