An open API service indexing awesome lists of open source software.

https://github.com/not-nik/sydney

A C++ 20 coroutine runtime
https://github.com/not-nik/sydney

async coroutines cpp20 runtime

Last synced: over 1 year ago
JSON representation

A C++ 20 coroutine runtime

Awesome Lists containing this project

README

          

# sydney

A C++ 20 coroutine runtime

## Usage

```cpp
#include

sydney::coroutine async_main() {
// Do your async programming here
co_return;
}

int main() {
sydney::start_at(async_main());
return 0;
}
```

## I/O Operations

sydney currently doesn't abstract system specific async I/O functions, but you can use `sydney::spawn_blocking` to run
blocking functions on a thread from a thread pool.