What's the difference between this_thread::sleep_for and wait except the time unit?

I wonder if I can use this_thread::sleep in the main thread. Which one is better?

They are the same, wait is a wrapper function for sleep_for to match the block that exists in VEXcode blocks.

6 Likes