Asynchronous actions implemented with std::thread