| 91 | |
| 92 | template<class callable_type, class... argumet_types> |
| 93 | timer make_timer(std::chrono::milliseconds due_time, |
| 94 | std::chrono::milliseconds frequency, |
| 95 | std::shared_ptr<concurrencpp::executor> executor, |
| 96 | callable_type&& callable, |
| 97 | argumet_types&&... arguments) { |
| 98 | if (!static_cast<bool>(executor)) { |
| 99 | throw std::invalid_argument(details::consts::k_timer_queue_make_timer_executor_null_err_msg); |
| 100 | } |
| 101 | |
| 102 | return make_timer_impl(due_time.count(), |
| 103 | frequency.count(), |
| 104 | std::move(executor), |
| 105 | false, |
| 106 | details::bind(std::forward<callable_type>(callable), std::forward<argumet_types>(arguments)...)); |
| 107 | } |
| 108 | |
| 109 | template<class callable_type, class... argumet_types> |
| 110 | timer make_one_shot_timer(std::chrono::milliseconds due_time, |
nothing calls this directly
no test coverage detected