diff --git a/src/data/roadmaps/server-side-game-developer/content/coroutine@o0Y_hM0KXUApfsXG4PvOY.md b/src/data/roadmaps/server-side-game-developer/content/coroutine@o0Y_hM0KXUApfsXG4PvOY.md index e69de29bb..0070eef8b 100644 --- a/src/data/roadmaps/server-side-game-developer/content/coroutine@o0Y_hM0KXUApfsXG4PvOY.md +++ b/src/data/roadmaps/server-side-game-developer/content/coroutine@o0Y_hM0KXUApfsXG4PvOY.md @@ -0,0 +1,13 @@ +# Coroutine + +**Coroutines** are lightweight, cooperative multitasking constructs that enable efficient asynchronous programming in server-side game +development. Unlike traditional threads, coroutines allow functions to be paused and resumed without blocking the entire execution +thread, making them ideal for handling game logic, networking, and AI behavior with minimal overhead. They work seamlessly with +future & promise mechanisms, simplifying concurrency management by avoiding callback hell and reducing synchronization complexity. +Coroutines are widely supported in modern languages like C++ (via `std::coroutine`), Python (`asyncio`), and Kotlin, offering game +developers an efficient way to write non-blocking code while maintaining readability and performance. + +Visit the following resources to learn more: + +- [@documentation@C++ Coroutines (cppreference)](https://en.cppreference.com/w/cpp/language/coroutines) +- [@documentation@Python Coroutines and Tasks](https://docs.python.org/3/library/asyncio-task.html)