MCPcopy Create free account
hub / github.com/boostorg/asio / test_nested_post_loop

Function test_nested_post_loop

test/co_composed.cpp:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void test_nested_post_loop()
194{
195 boost::asio::io_context ctx(1);
196 int count = 0;
197 nested_post_loop(ctx, [&](int i){ count = i; });
198 ctx.run();
199 BOOST_ASIO_CHECK(count == 100);
200}
201
202template <typename CompletionToken>
203auto post_loop_return_1_0(boost::asio::io_context& ctx, CompletionToken&& token)

Callers

nothing calls this directly

Calls 2

nested_post_loopFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected