View Single Post
  #9  
Old 06-07-2011, 08:50 AM
ZaltysZ's Avatar
ZaltysZ ZaltysZ is offline
Approved Member
 
Join Date: Sep 2008
Location: Lithuania
Posts: 426
Default

Quote:
Originally Posted by Ataros View Post
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).
Reply With Quote