| 156 | } |
| 157 | |
| 158 | void test_post_loop() |
| 159 | { |
| 160 | boost::asio::io_context ctx(1); |
| 161 | int count = 0; |
| 162 | post_loop(ctx, [&](int i){ count = i; }); |
| 163 | ctx.run(); |
| 164 | BOOST_ASIO_CHECK(count == 100); |
| 165 | } |
| 166 | |
| 167 | template <typename CompletionToken> |
| 168 | auto nested_post(boost::asio::io_context& ctx, CompletionToken&& token) |