Improve coroutine content with resources

pull/8415/head
Jawher Kl 3 weeks ago committed by GitHub
parent 6c6c9ea85d
commit 2c5c639b4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      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)
Loading…
Cancel
Save