commit | 91795e70ff1888116b2f24ae6033a3435dab51ce | [log] [tgz] |
---|---|---|
author | Christopher Kohlhoff <chris@kohlhoff.com> | Tue Nov 02 08:54:32 2021 +1100 |
committer | Christopher Kohlhoff <chris@kohlhoff.com> | Wed Nov 03 19:10:41 2021 +1100 |
tree | 18e0e6c43c3f081287d8a693cdbc657de56bd7f4 | |
parent | 23c62e1355fade2be5ef26cda4d43736a74364ba [diff] |
Add experimental support for channels. This adds experimental::channel and experimental::concurrent_channel. Channels may be used to send completions as messages. For example: channel<void(error_code, size_t)> ch(ctx); ch.async_send(asio::error::eof, 123, [](error_code ec) { // ... }); ch.async_receive( [](error_code ec, size_t n) { // ... });