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
- Host: GitHub
- URL: https://github.com/not-nik/sydney
- Owner: Not-Nik
- License: mpl-2.0
- Created: 2022-09-01T16:27:45.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-01T16:29:07.000Z (almost 4 years ago)
- Last Synced: 2025-03-18T05:08:57.048Z (over 1 year ago)
- Topics: async, coroutines, cpp20, runtime
- Language: C++
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.