mfichman / coro

Modern coroutine library for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Modern coroutine library for C++

License:MIT License


Languages

Language:C++ 84.2%Language:Python 8.8%Language:Assembly 6.9%