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

Function stack_generator

test/experimental/coro/stack_test.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace coro {
28
29boost::asio::experimental::coro<int()>
30 stack_generator(boost::asio::any_io_executor, int i = 1)
31{
32 for (;;)
33 {
34 co_yield i;
35 i *= 2;
36 }
37}
38
39boost::asio::experimental::coro<int(int)>
40stack_accumulate(boost::asio::any_io_executor exec)

Callers 1

stack_accumulateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected