HTML5 deployment: progress comes into sight

jonathandlynch at gmail.com jonathandlynch at gmail.com
Sun Jun 4 05:53:58 EDT 2017


No need to loop.

Set three flags to false. After each callback comes in and the flag gets switched, check all three flags. After the last ones comes in, all three flag variables will be switched and can trigger the next action.

Sent from my iPhone

> On Jun 3, 2017, at 9:04 PM, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
>> On 06/03/2017 06:38 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
>> 
>> Fascinating solution for X no of use cases, where you don't really need *now* , but where what you really only need is to know "exactly when and what" happened, even if slightly (typically, milliseconds) after the whole series events/statements finish
> 
> Also for pseudo-parallel processing:
> 
> if you have three asynchronous processes that need to finish before you can move past a certain point in a script, you can set three flag variables to false, then set each individually to true in its callback handler, and loop on those three variables until they're all true or you reach a timeout.
> 
> -- 
> Mark Wieder
> ahsoftware at gmail.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list