MCPcopy Create free account
hub / github.com/boostorg/cobalt / stest

Function stest

bench/immediate.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#if defined(BOOST_COBALT_BENCH_WITH_CONTEXT)
40
41void stest(asio::yield_context ctx)
42{
43 asio::experimental::channel<void(system::error_code)> chan{ctx.get_executor(), 1u};
44 for (std::size_t i = 0u; i < n; i++)
45 {
46 chan.async_send(system::error_code{}, ctx);
47 chan.async_receive(ctx);
48 }
49}
50#endif
51
52

Callers

nothing calls this directly

Calls 1

get_executorMethod · 0.45

Tested by

no test coverage detected