| 108 | |
| 109 | template<class callable_type, class... argumet_types> |
| 110 | timer make_one_shot_timer(std::chrono::milliseconds due_time, |
| 111 | std::shared_ptr<concurrencpp::executor> executor, |
| 112 | callable_type&& callable, |
| 113 | argumet_types&&... arguments) { |
| 114 | if (!static_cast<bool>(executor)) { |
| 115 | throw std::invalid_argument(details::consts::k_timer_queue_make_oneshot_timer_executor_null_err_msg); |
| 116 | } |
| 117 | |
| 118 | return make_timer_impl(due_time.count(), |
| 119 | 0, |
| 120 | std::move(executor), |
| 121 | true, |
| 122 | details::bind(std::forward<callable_type>(callable), std::forward<argumet_types>(arguments)...)); |
| 123 | } |
| 124 | |
| 125 | lazy_result<void> make_delay_object(std::chrono::milliseconds due_time, std::shared_ptr<concurrencpp::executor> executor); |
| 126 |
nothing calls this directly
no test coverage detected