https://github.com/aosync/coro
C++ stackful coroutines library
https://github.com/aosync/coro
Last synced: 2 months ago
JSON representation
C++ stackful coroutines library
- Host: GitHub
- URL: https://github.com/aosync/coro
- Owner: aosync
- License: mit
- Created: 2022-01-27T07:47:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-28T14:34:33.000Z (over 4 years ago)
- Last Synced: 2025-01-20T15:48:58.441Z (over 1 year ago)
- Language: C++
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# coro
Simple C++ stackful coroutine library for use in other projects. Uses [ctx](https://github.com/aosync/ctx) as backend.
## embed in your project
For this, I recommend that you use the meson wrap system. Create a wrap file for coro in `subprojects/`, e.g. to follow head,
```
[wrap-git]
url = git@github.com:aosync/coro
revision = head
```
Then, add these lines in your meson.build file.
```meson
coro_dep = dependency('coro', required : false)
if not coro_dep.found()
coro_proj = subproject('coro')
coro_dep = coro_proj.get_variable('coro_proj')
endif
```
You can then add the `coro_dep` dependency to your targets.