13#include <rpp/schedulers/fwd.hpp>
14#include <rpp/subscriptions/fwd.hpp>
18namespace rpp::schedulers::constraint
22concept schedulable_fn = std::invocable<T> && std::same_as<std::invoke_result_t<T>, optional_duration>;
28concept worker = std::is_base_of_v<details::worker_tag, std::decay_t<T>>;
31concept scheduler = std::is_base_of_v<details::scheduler_tag, std::decay_t<T>> &&
requires(
const T t)
33 {t.create_worker(std::declval<rpp::composite_subscription>())} ->
worker;
Definition: constraints.hpp:25
Definition: constraints.hpp:22
Definition: constraints.hpp:31
Definition: constraints.hpp:28