What's the difference between vex::task and vex::thread in C++ Pro?

I’m not sure what the difference is between task and thread in C++ pro. Both seem to allow you to run multiple processes in parallel. What’s the difference between them or the preferred method to use?


They have different use cases. A look at their methods pretty much explains it.

They have very similar functionality and implement cooperative multi tasking in the same way on the brain. vex::task has an API that will be familiar to existing ROBOTC users, vex::thread has some similarities with std::thread.