Is there anyway to detect that all threads have finished before the main script continues? I have a script that spawns 21 threads, two at a time, with a minute pause between each set of two (just so everything isn't launching at once).
loop while($table cell(&NEW,#a,0) != "") {
loop(2) {
MyLogin($table cell(&NEW,#a,0), $table cell(&NEW,#a,1), $table cell(&NEW,#a,2), $table cell(&NEW,#a,3), $table cell(&NEW,#a,4), $table cell(&NEW,#a,7))
increment(#a)
}
wait(60)
}The problem I have is some threads take longer to complete than others and d