Replace thread pool by std::async