Tag

awaitable

1 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Aug 23, 2022 · Backend Development

Understanding Asio Coroutine Implementation in C++20

The article explains how Asio implements C++20 coroutine support by converting callback‑based async operations into awaitables with use_awaitable, launching them via co_spawn and co_spawn_entry_point, handling result propagation and thread dispatch, and providing parallel composition operators (&&, ||) for concurrent awaiting.

AsyncC++20Network Programming
0 likes · 26 min read
Understanding Asio Coroutine Implementation in C++20
Tencent Cloud Developer
Tencent Cloud Developer
Sep 23, 2021 · Game Development

Understanding C++20 Coroutines and Their Application in a Game Scheduler

The article walks through C++20 coroutines—from basic suspension mechanics and the roles of coroutine_handle, promise_type, and awaitable methods—to constructing a lightweight game scheduler that manages task lifetimes, await modes, and RPC integration, and demonstrates how this approach mirrors Python’s yield‑based skill system while offering clearer, high‑performance native code.

C++20Schedulerasynchronous
0 likes · 29 min read
Understanding C++20 Coroutines and Their Application in a Game Scheduler