| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected