Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mfichman/coro
Modern coroutine library for C++
https://github.com/mfichman/coro
Last synced: 3 months ago
JSON representation
Modern coroutine library for C++
- Host: GitHub
- URL: https://github.com/mfichman/coro
- Owner: mfichman
- License: mit
- Created: 2013-11-09T13:24:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-23T13:39:56.000Z (over 8 years ago)
- Last Synced: 2024-05-02T16:10:38.915Z (6 months ago)
- Language: C++
- Size: 82 KB
- Stars: 50
- Watchers: 5
- Forks: 24
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - coro
README
coro
====Modern coroutine library for C++, including an async socket I/O implementation (with SSL support).
## Basic Usage
```
auto c = coro::start([]() {
std::cout << "I'm a coroutine!" << std::endl;
coro::sleep(coro::Time::millisec(100));
});
coro::run(); // runs the coroutine dispatch loop
```Support for OS X and Windows!
## Building
```
pip install scons
cd coro
scons
```