Example updated, use the task handle instead of the Thread::run() member function.