MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / make_one_shot_timer

Function make_one_shot_timer

include/concurrencpp/timers/timer_queue.h:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

make_timer_implFunction · 0.85
bindFunction · 0.85

Tested by

no test coverage detected