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

Function test_post_loop

test/co_composed.cpp:158–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void 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
167template <typename CompletionToken>
168auto nested_post(boost::asio::io_context& ctx, CompletionToken&& token)

Callers

nothing calls this directly

Calls 2

post_loopFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected