Difference between wait and sleep

Hello,

I was wondering what the difference between wait (wait(10, msec)) and sleep(vex::task::sleep(5):wink: was in vexcode because I’ve been using them interchangeably. Thanks

I don’t think there is any difference, besides one is 10ms and the other is 5ms. The sleep one is deprecated, but using either one is fine

1 Like

Ok thanks good to know