kokkos-execution 0.0.1
Loading...
Searching...
No Matches
just_stopped.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_TESTS_UTILS_JUST_STOPPED_HPP
2#define KOKKOS_EXECUTION_TESTS_UTILS_JUST_STOPPED_HPP
3
5
7
8namespace Tests::Utils {
9
10template <typename SchedulerType, typename Tag, typename... Args>
12 using sndr_t =
13 decltype(stdexec::just_stopped() | stdexec::continues_on(std::declval<SchedulerType>()) | Tag{}(std::declval<Args>()...));
14
15 static_assert(!stdexec::dependent_sender<sndr_t>);
16 static_assert(
17 stdexec::get_completion_signatures<sndr_t>() == stdexec::completion_signatures<stdexec::set_stopped_t()>{});
18 static_assert(
19 stdexec::get_completion_signatures<sndr_t, stdexec::env<>>()
20 == stdexec::completion_signatures<stdexec::set_stopped_t()>{});
21
24
25 return true;
26}
27
28} // namespace Tests::Utils
29
30#endif // KOKKOS_EXECUTION_TESTS_UTILS_JUST_STOPPED_HPP
consteval bool check_continues_on_after_just_stopped()