异步操作类

  • std::async:执行异步操作。
  • std::future:提供对异步操作结果的访问。
  • std::promise:打包异步操作的结果。
  • std::packaged_task:为函数及其返回类型的相关承诺绑定。