REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 31-Jan-2013 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:

Description

If the value is a time!, delay for that period. 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