Wait command
Richard Gaskin
ambassador at fourthworld.com
Sun Mar 2 22:22:56 EST 2014
dunbarx wrote:
> Wait is blocking. An idle handler will be locked out just like
> everything else.
>
> But a line like "wait 0 with messages" does not seem to me to do much.
It undoes your first sentence.
It calls the equivalent of what we old readers of Inside Mac used to
call GetNextEvent, allowing at least once complete cycle through the OS
and application event loops.
This allows pending messages to be handled, and allows the OS interrupts
enough space to be usable if something needs to be exited from, and
allows the OS to update the screen.
A lot happens with that humble line, simply and with reasonable efficiency.
--
Richard Gaskin
Fourth World Systems
Software Design and Development for Desktop, Mobile, and Web
____________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list