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

Function generator_impl

test/experimental/coro/simple_test.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77};
78
79boost::asio::experimental::coro<int> generator_impl(
80 boost::asio::any_io_executor, int& last, bool& destroyed)
81{
82 on_scope_exit x = [&]() noexcept { destroyed = true; };
83 (void)x;
84
85 int i = 0;
86 while (true)
87 {
88 last = ++i;
89 co_yield last;
90 }
91}
92
93boost::asio::awaitable<void> generator_test()
94{

Callers 1

generator_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected