| 36 | } |
| 37 | |
| 38 | int 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 | } |
nothing calls this directly
no test coverage detected