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 
> <[email protected]> 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
> [email protected]
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to