Error getting tags :
error 404Error getting tags :
error 404 waitDepth | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
waitDepth
Basics
Expander triangle
Type
Function
Syntax

the waitDepth

waitDepth()

See Also
Introduced
1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the number of nested wait commands currently pending.
Examples

the waitDepth
if the waitDepth > 10 then beep

Additional Comments
Expander triangle

Use the waitDepth function to determine how many wait commands are currently awaiting completion.

Value:

The waitDepth function returns a positive integer.

Comments:

The wait with messages form of the wait command, when used in a handler, pauses that handler while allowing Revolution to execute other handlers while waiting. The waitDepth function indicates how many such statements are currently executing--that is, how many handlers are currently paused by a wait with messages statement.

If there are no paused handlers, the waitDepth function returns 1.

User Comments
Expander triangle