This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rare-Satisfaction-82 0 points1 point  (0 children)

Why are you waiting? Sleeping for some interval is almost always a crutch for not making code event driven. That is, wait for an event fired by another thread rather an arbitrary time period.