Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

timeout

1977 Version of ANSI Standard

3.5.6 Timeout

The OPEN, LOCK, and READ commands employ an optional timeout specification, associated with the testing of an external condition.

    timeout::= : numexpr

See also the transition diagram for timeout.

If the optional timeout is absent, the command will proceed if the condition, associated with the definition of the command, is satisfied; otherwise, it will wait until the condition is satisfied and then proceed. $T will not be altered if the timeout is absent.

If the optional timeout is present, the value of numexpr must be nonnegative. If it is negative, the value 0 is used. numexpr denotes a t-second timeout, where t is the value of numexpr.

If t = 0, the condition is tested. If it is true, $T is set to 1; otherwise, $T is set to O. Execution proceeds without delay.

If t is positive, execution is suspended until the condition is true, but in any case no longer than t seconds. If at the time of resumption of execution the condition is true, $T is set to 1; otherwise, $T is set to 0.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

This page most recently updated on 28-Nov-2011, 21:33:04.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)