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

Function main

example/cpp14/executors/async_2.cpp:64–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64int main()
65{
66 static_thread_pool io_pool(1);
67 static_thread_pool completion_pool(1);
68
69 std::cout << "Enter text, terminating with a blank line:\n";
70
71 async_getlines(io_pool.executor(), std::cin, "",
72 bind_executor(completion_pool.executor(), [](std::string lines)
73 {
74 std::cout << "Lines:\n" << lines << "\n";
75 }));
76
77 io_pool.wait();
78 completion_pool.wait();
79}

Callers

nothing calls this directly

Calls 3

async_getlinesFunction · 0.85
executorMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected