What’s the best way to do something like this?
for a in b
#do this thing
#wait a second, then continue the loop
in js
var a, _i, _len;
for (_i = 0, _len = b.length; _i < _len; _i++) {
a = b[_i];
//do this thing
//wait a second, then continue the loop
}
Thanks!
To process one item from a
for (i in b)loop each second until you’re done with the items, you can do it like this: