cppcoro icon indicating copy to clipboard operation
cppcoro copied to clipboard

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

Results 108 cppcoro issues
Sort by recently updated
recently updated
newest added

See https://github.com/toby-allsopp/coroutine_monad for inspiration. ```c++ std::optional parse_int(const std::string_view& s); std::optional parse_int_pair(const std::string_view& a, const std::string_view& b) { co_return std::make_tuple(co_await parse_int(a), co_await parse_int(b)); } ```

https://github.com/alibaba/PhotonLibOS Compare TCP echo server performance, in descending order. Client Mode: Streaming | | Concurrency Model | Buffer Size | Conn Num | QPS | Bandwidth | CPU util |...

Hello, I´m pretty new to... well kinda everything and I have an issue at the networking stuff. As needed I am using C++20, but as you can see in the...

From a non-coroutine context, there is `sync_wait` to do the equivalent of a blocking `co_await`. But is there some way to fire and forget a coroutine? (ie. start its execution...

`async_mutex::unlock()` makes a direct call to `handle.resume()` on the next awaiter in the queue. This prevents the code releasing the mutex from continuing its execution until the next awaiter --...

The following code snippet has a race condition, according to thread sanitizer. $ cat race.cpp ``` #include #include #include int main(int argc, char* argv[]) { cppcoro::static_thread_pool tp(1); auto t =...

What the purpose to choose cake as the build system for a general purpose library? Could you please support building via cmake as well as the user normally do not...

I'd like to create something like an event loop that schedules tasks and do some logic when a task (or sub-task) is co_awaited. Basically I want something like `sync_wait` that...

Hi! I had compilation errors on static_thread_pool.cpp with my gcc-12 compiler, claming std::exchange doesn't belong to std namespace. It compiled after appeding to the includes. Also in tasks.hpp my compiler...