| 5 | using namespace std::chrono_literals; |
| 6 | |
| 7 | concurrencpp::null_result delayed_task(std::shared_ptr<concurrencpp::timer_queue> tq, |
| 8 | std::shared_ptr<concurrencpp::thread_pool_executor> ex) { |
| 9 | size_t counter = 1; |
| 10 | |
| 11 | while (true) { |
| 12 | std::cout << "task was invoked " << counter << " times." << std::endl; |
| 13 | counter++; |
| 14 | |
| 15 | co_await tq->make_delay_object(1500ms, ex); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | int main() { |
| 20 | concurrencpp::runtime runtime; |
no test coverage detected