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

With the latest switch to clang, this lib would be a "huge" add for emscripten.

https://github.com/lewissbaker/cppcoro#async_generatort uses some type called "threadpool" with a member function named "delay". Even if the type were supposed to be `cppcoro::static_thread_pool`, `static_thread_pool` still doesn't have any member named "delay". The...

[`task` example in README.md](https://github.com/lewissbaker/cppcoro#taskt) includes the following line: ```c++ auto file = co_await cppcoro::read_only_file::open(path); ``` This doesn't compile and I can't even find a point in the git history that...

The `when_all` concurrency primitive currently requires that all of the tasks are created up front whereas with server workloads we'll typically be dynamically starting new tasks to handle the connections...

It would be good to cover the vision and strategy behind `io_service` in some doc or wiki. This is needed to have organized approach for supporting a `generic platform`. 1....

question

As discussed in https://github.com/lewissbaker/cppcoro/issues/46#issuecomment-328516796 the async I/O facilities provided by cppcoro should be split out into a separate library to allow applications to make use of the generic, core components...

Hi @lewissbaker, this is more of a question, since you seem to be well aware about how C++ coroutines work. We recently talked about cancellation of coroutines for Rust at...

question

There have been some random test-failures on the CI servers. eg. This [test run](https://ci.appveyor.com/project/lewissbaker/cppcoro/build/1.0.140/job/xwimhya3f2jwp024) failed with: ``` c:\projects\cppcoro\test\scheduling_operator_tests.cpp(21) TEST SUITE: schedule/resume_on TEST CASE: schedule_on task function c:\projects\cppcoro\test\scheduling_operator_tests.cpp(40) ERROR! CHECK( std::this_thread::get_id()...

The difficult part of designing when_any() will be how to handle cancellation of the co_await operations of the other tasks. Currently, the `task` and `shared_task` types don't allow the caller...

design