VCS's vex::task::sleep vs RMS's vex::sleep

So in VEX C++ Pro, I can type vex::task::sleep(aNumber) and have it wait for aNumber, but on RMS, it just wants vex::sleep(aNumber). Is there any difference between the two, and is there a common line of code that works for both so I don’t need to change my code if i had to switch from VCS to RMS and vice-versa?

I feel like RMS and VCS do threads somewhat differently.

@John TYler please confirm.

Both have the namespace with its


sleep_for

and


sleep_until

methods.

so if I switch from vex::task::sleep to vex::this_thread, it should work on both VCS and RMS without any changes to the code?

yes, quite different, there are pros and cons for each approach.