Let sync-wait-env be the following exposition-only class type:
namespace std::this_thread {
struct sync-wait-env {
execution::run_loop* loop;
auto query(execution::get_scheduler_t) const noexcept {
return loop->get_scheduler();
}
auto query(execution::get_delegation_scheduler_t) const noexcept {
return loop->get_scheduler();
}
};
}