[EMCpp]Item-36 Specify std::launch::async if Asynchronicity Is Essential
· β 4 min read
The flexibility that default policy for std::async
permits both async and sync task execution leads to uncertainty when accessing thread_locals
, implies that the task may never execute, and affects program logic for timeout-based wait
calls.