Error: "using obsolete binding" in sketch

I'm still not sure what you're asking, but all the loops could go inside the conditional.

No, you can't have concurrency.