Posted 07 December 2012 - 09:33 AM
Hello all !
So I have a table with all the functions in it, and I want to use parallel.waitforany() but has I don't how many functions there are in the table and I can't do a for loops because I want to run them together…. Is there any other ways than just checking how many functions are in the table and then do something like that ?
So I have a table with all the functions in it, and I want to use parallel.waitforany() but has I don't how many functions there are in the table and I can't do a for loops because I want to run them together…. Is there any other ways than just checking how many functions are in the table and then do something like that ?
If #tableOfFunctions == 3 then
parallel.waitForAny(tableOfFunctions[1], tableOfFunctions[2], tableOfFunctions[3])
Elseif ...
And so ...
Thanks ! :)/>