di 0.1.0
Loading...
Searching...
No Matches
schedule.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace di::execution {
7namespace detail {
8 struct ScheduleFunction {
9 template<typename Scheduler>
10 requires(concepts::TagInvocable<ScheduleFunction, Scheduler>)
11 constexpr auto operator()(Scheduler&& scheduler) const -> concepts::Sender auto {
12 return function::tag_invoke(*this, util::forward<Scheduler>(scheduler));
13 }
14 };
15}
16
17constexpr inline auto schedule = detail::ScheduleFunction {};
18}
meta::ExecutionContextScheduler< Context > Scheduler
Definition sync_wait.h:19
Definition bulk.h:30
constexpr auto schedule
Definition schedule.h:17
constexpr tag_invoke_detail::TagInvokeFn tag_invoke
Definition tag_invoke.h:22