{"repo":"ShirenY/tokoro","free":true,"listed":false,"github":"https://github.com/ShirenY/tokoro","clone":"git clone https://github.com/ShirenY/tokoro.git","description":"Lightweight, header only, coroutine library for games.","language":"C++","stars":31,"topics":["coroutines","gamedev","cpp20","header-only"],"license":"MIT","category":"game-templates","readme_excerpt":"tokoro tokoro is a lightweight, header‑only C++20 coroutine library tailored for games, GUIs, and other update‑driven systems. It delivers efficient single‑threaded coroutine scheduling—ideal for latency‑sensitive, performance‑critical applications. ✨ Highlights 🔄 Update-based scheduling – perfect for frame-driven systems like games or UI rendering. ⚡ Lightweight & efficient – low memory footprint and minimal scheduling overhead. 🧩 Plug-and-play – just include the header, setup update call, and you’re ready to go. 🔧 Highly customizable – plug in your own update phases or timers. 🧵 Single-threaded – less power comes with less responsbility. Sometimes we just want to be safe. 🎯 Project Goal Designed to be lightweight and modular, yet expressive enough to handle complex coroutine flows. 🚫 Non-Goals Not a coroutine library for maximizing multi-core CPU throughput. ( There are quite some coroutine libraries doing that. ) However, you can still delegate computation to threads and return results into tokoro coroutines. Hello tokoro Here's a simple, compilable example showcasing tokoro in action. 📖 Table of Contents - 📚 Tutorial - Integrating tokoro - Decide Scheduler Scope - Creating a Coroutine - Starting a Root Coroutine - Coroutine Lifetimes - The Way to Handle It - Awaiters - Custom Updates - Execution Flow - Exceptions - Performance - FAQ - Best Practices - Next Steps - Inspiring - Platform Compatibility - License 📚 Tutorial Integrating tokoro tokoro is a lightweight, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ShirenY","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ShirenY/tokoro/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}