C++ Coroutines

Open-source C++ projects categorized as Coroutines

Top 23 C++ Coroutine Projects

  1. Swoole

    🚀 Coroutine-based concurrency library for PHP

    Project mention: Swoole (Coroutine-based concurrency for PHP) v6 released | news.ycombinator.com | 2024-12-16
  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. cppcoro

    A library of C++ coroutine abstractions for the coroutines TS

  4. userver

    Production-ready C++ Asynchronous Framework with rich functionality

    Project mention: Userver 2.10 Released | news.ycombinator.com | 2025-06-11
  5. concurrencpp

    Modern concurrency for C++. Tasks, executors, timers and C++20 coroutines to rule them all

    Project mention: Concurrencpp – C++ Coroutine Library | news.ycombinator.com | 2024-08-03
  6. async_simple

    Simple, light-weight and easy-to-use asynchronous components

  7. less_slow.cpp

    Playing around "Less Slow" coding practices in C++ 20, C, CUDA, PTX, & Assembly, from numerics & SIMD to coroutines, ranges, exception handling, networking and user-space IO

    Project mention: Faster sorting with SIMD CUDA intrinsics | news.ycombinator.com | 2025-05-06

    Thanks, appreciate the gesture :)

    Traditional SWAR on GPUs is a fascinating topic. I've begun assembling a set of synthetic benchmarks to compare DP4A vs. DPX (<https://github.com/ashvardanian/less_slow.cpp/pull/35>), but it feels incomplete without SWAR. My working hypothesis is that 64-bit SWAR on properly aligned data could be very useful in GPGPU, though FMA/MIN/MAX operations in that PR might not be the clearest showcase of its strengths. Do you have a better example or use case in mind?

  8. ue5coro

    A deeply-integrated C++20 coroutine plugin for Unreal Engine 5.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. ext-openswoole

    Programmatic server for PHP with async IO, coroutines and fibers

    Project mention: THT v0.8.1 – A modern re-design of PHP | news.ycombinator.com | 2024-10-18

    $hayStack.contains('needle')

    This looks more or less like a new language ? It must be amazing amount of time and energy to rewrite PHP in to this.

    I don't see the benefits. I understand the Facebook's HHVM had some. (https://hhvm.com/)

    Or Swoole (https://openswoole.com/) has it.

    But i'm not clear of THT (also typical apple vs oranges benchamrkTM included).

    2cents

  11. libcoro

    C++20 coroutine library

  12. libfork

    A bleeding-edge, lock-free, wait-free, continuation-stealing tasking library built on C++20's coroutines

  13. restc-cpp

    Modern C++ REST Client library

  14. qcoro

    C++ Coroutines for Qt

  15. coros

    An easy-to-use and fast library for task-based parallelism, utilizing coroutines. (by mtmucha)

    Project mention: Show HN: Coros – A Modern C++ Library for Task Parallelism | news.ycombinator.com | 2024-09-25

    In your dequeue/circular buffer implementation, how is it able to grow the queue without locking?

    The code seems to rely on atomics for head & tail, but grows the queue without any special provisions I can see.

    https://github.com/mtmucha/coros/blob/ee30d3c1d0602c3071aa26...

  16. corobase

    Coroutine-Oriented Main-Memory Database Engine (VLDB 2021)

  17. Ichor

    C++20 Microservice Bootstrapping Framework

  18. packio

    An asynchronous msgpack-RPC and JSON-RPC library built on top of Boost.Asio.

  19. kelcoro

    C++20 coroutine library

  20. UE4EnhancedCodeFlow

    This code plugin for Unreal Engine provides functions that drastically improve the quality of life during the implementation of game flow in C++.

  21. coop

    C++20 coroutines-based cooperative multitasking library (by jeremyong)

  22. charly-vm

    Fully parallel dynamically typed programming language

  23. CoFSM

    Finite State Machine using C++20 coroutines with symmetric transfer

  24. asyncpp

    Async (co_await/co_return) code for c++. This is a base library providing building blocks.

  25. rohrkabel

    🔌 A C++ Pipewire-API Wrapper

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ Coroutines discussion

Log in or Post with

C++ Coroutines related posts

Index

What are some of the best open-source Coroutine projects in C++? This list will help you:

# Project Stars
1 Swoole 18,693
2 cppcoro 3,549
3 userver 2,628
4 concurrencpp 2,572
5 async_simple 1,928
6 less_slow.cpp 1,786
7 ue5coro 867
8 ext-openswoole 821
9 libcoro 781
10 libfork 709
11 restc-cpp 632
12 qcoro 475
13 coros 323
14 corobase 249
15 Ichor 223
16 packio 151
17 kelcoro 129
18 UE4EnhancedCodeFlow 120
19 coop 104
20 charly-vm 98
21 CoFSM 92
22 asyncpp 83
23 rohrkabel 65

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?