我应该什么时候使用std::promise过std::async或std::packaged_task?你能告诉我何时使用它们的实际例子吗?
std::promise
std::async
std::packaged_task
c++ asynchronous future promise packaged-task
asynchronous ×1
c++ ×1
future ×1
packaged-task ×1
promise ×1