Tag: asynchronous
3 posts
-
C++20 Coroutines: promise_type, co_await Awaiters, Generators, and Task Types
C++20 coroutines: coroutine_handle, promise_type, co_await, generators, Task patterns, and compiler support for async-style control flow.
-
C++ std::future and std::promise: Passing Results Between Threads vs std::async
How std::future and std::promise pass a result between threads in C++, and the difference between this and using std::async directly.
-
std::async and Launch Policies: When async Actually Runs on Another Thread
What std::launch::async and deferred really do, why the default policy breaks wait_for loops, why the returned future blocks in its destructor, and exceptions.