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

Function main

example/cpp14/executors/async_1.cpp:38–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38int main()
39{
40 static_thread_pool io_pool(1);
41 static_thread_pool completion_pool(1);
42
43 std::cout << "Enter a line: ";
44
45 async_getline(io_pool.executor(), std::cin,
46 bind_executor(completion_pool.executor(),
47 [](std::string line)
48 {
49 std::cout << "Line: " << line << "\n";
50 }));
51
52 io_pool.wait();
53 completion_pool.wait();
54}

Callers

nothing calls this directly

Calls 3

async_getlineFunction · 0.70
executorMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected