Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions include/beman/execution/detail/inline_scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import std;
#include <utility>
#endif
#ifdef BEMAN_HAS_MODULES
import beman.execution.detail.get_scheduler;
import beman.execution.detail.sender;
import beman.execution.detail.receiver;
import beman.execution.detail.set_value;
Expand Down Expand Up @@ -59,6 +60,8 @@ struct inline_scheduler {
-> state<Rcvr> {
return {::std::forward<Rcvr>(receiver)};
}

inline_scheduler query(const ::beman::execution::get_scheduler_t&) const noexcept { return {}; }
};

static constexpr auto schedule() noexcept -> sender { return {}; }
Expand Down
3 changes: 3 additions & 0 deletions tests/beman/execution/exec-inline-scheduler.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ auto test_sender_env_is_inline_attrs() {
auto sndr = test_std::schedule(test_std::inline_scheduler{});
auto attrs = test_std::get_env(sndr);
static_assert(std::same_as<decltype(attrs), test_detail::inline_attrs<test_std::set_value_t>>);

auto sched = test_std::get_completion_scheduler<test_std::set_value_t>(test_std::get_env(sndr), sndr);
static_assert(std::same_as<decltype(sched), test_std::inline_scheduler>);
}

auto test_inline_attrs_completion_scheduler() {
Expand Down
Loading