waitDepth | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the number of nested wait commands(command) currently pending. | ||||||
Introduced | 1.1 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: integer Command: wait Glossary: handler, statement, command, return, execute Control Structure: function | ||||||
Description | Use the waitDepth function to determine how many wait commands are currently awaiting completion. The wait with messages form of the wait command, when used in a handler, pauses that handler while allowing LiveCode 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. |