lewissbaker / cppcoro

A library of C++ coroutine abstractions for the coroutines TS
MIT License
3.42k stars 468 forks source link

Split async I/O functionality into a separate 'cppcoro_io' library #54

Open lewissbaker opened 7 years ago

lewissbaker commented 7 years ago

As discussed in https://github.com/lewissbaker/cppcoro/issues/46#issuecomment-328516796 the async I/O facilities provided by cppcoro should be split out into a separate library to allow applications to make use of the generic, core components of cppcoro (task, async_generator, when_all etc.) without pulling in the platform-specific async I/O subsystems.

This will allow applications to more easily use other I/O frameworks like libuv, boost::asio or the Networking TS in conjunction with cppcoro.

IronsDu commented 5 years ago

asio already support co_awiat, can both use cppcoro and asio? i think will rewrite it use cppcoro and async asio. maybe persuade asio use cppcoro to support co_await ?

IronsDu commented 5 years ago

Hi, i see asio can't help me translate async to sync(for co_await). so i very hope cppcoro will slit io, and focus generic, core components.