Quote:
Originally Posted by Ataros
upd.
OT, but as I do not want to start a new thread for this. Can Timeout(initTime += 90, () => be used inside a cycle? Does it prevents a cycle from further execution? I had some problems with triggers when Timeout(initTime += 90, () => was inside the onTrigger cycle. However current code is probably not different in essence from having Timeout(initTime += 90, () => inside the cycle but it works somehow ))
|
Timeout() isn't a blocking method in sense that it does not stop code execution until given time passes. It just adds new timer to timer list and exits, so that code which called it could be executed further. So yes, you can use it in loops (cycles).