![]() ![]() In my opinion, wait() has no place in production code. It’s a super easy solution and it works! This starts a bad habit of just putting wait() to fix your code. We probably learned about wait() at first as the solution to “why are my infinite loops crashing me?”. ![]() Not wait(n) (although if you are using small n values to where it’d be barely distinguishable from wait(), you’re probably going to hit the same issues mentioned in this thread). This is simply a better formatted and more fleshed out version. This is an adaptation of a Twitter thread I made a while ago.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |