Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 393 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 393 Bytes

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