非同步操作類

  • std::async:執行非同步操作。
  • std::future:提供對非同步操作結果的訪問。
  • std::promise:打包非同步操作的結果。
  • std::packaged_task:為函式及其返回型別的相關承諾繫結。