| 62 | } |
| 63 | |
| 64 | int 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 | } |
nothing calls this directly
no test coverage detected