These are some (largely) independent tests with coroutines for the task scheduling studies in Work Package 1.7.
This project isn't intended as a coroutine support library. If you're looking for a fully-fledged coroutine library, consider using cppcoro or concurrencpp.
The project requires a C++20 compiler with coroutine support.
To build the project run:
cmake -S . -B build
cmake --build build
Building the examples using std::generator
require C++23 standard:
cmake -S . -B build -DCMAKE_CXX_STANDARD=23
cmake --build build
Then run the examples, for instance:
./build/examples/generator
To make experimentation easier, a skeleton coroutine is provided that includes most of the boilerplate code and can be copied and completed with your own implementation.