| 39 | |
| 40 | template <typename T> |
| 41 | auto make_scheduler() -> T { |
| 42 | if constexpr (std::constructible_from<T, std::size_t>) { |
| 43 | return T{std::min(4U, std::thread::hardware_concurrency())}; |
| 44 | } else { |
| 45 | return T{}; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | inline constexpr auto noop = [](auto const) -> task<> { |
| 50 | LF_LOG("nooop"); |
nothing calls this directly
no outgoing calls
no test coverage detected