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

Function do_submit

include/concurrencpp/executors/executor.h:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68 template<class executor_type, class callable_type, class... argument_types>
69 auto do_submit(callable_type&& callable, argument_types&&... arguments) {
70 static_assert(std::is_invocable_v<callable_type, argument_types...>,
71 "concurrencpp::executor::submit - <<callable_type>> is not invokable with <<argument_types...>>");
72
73 using return_type = typename std::invoke_result_t<callable_type, argument_types...>;
74 return submit_bridge<return_type>({},
75 *static_cast<executor_type*>(this),
76 std::forward<callable_type>(callable),
77 std::forward<argument_types>(arguments)...);
78 }
79
80 template<class executor_type, class callable_type>
81 void do_bulk_post(std::span<callable_type> callable_list) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected