kokkos-execution 0.0.1
Loading...
Searching...
No Matches
sink_receiver.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_TESTS_UTILS_SINK_RECEIVER_HPP
2#define KOKKOS_EXECUTION_TESTS_UTILS_SINK_RECEIVER_HPP
3
5
6namespace Tests::Utils {
7
10 using receiver_concept = stdexec::receiver_tag;
11
12 void set_value(auto&&...) && noexcept {
13 }
14
15 void set_error(auto&&) && noexcept {
16 }
17
18 void set_stopped() && noexcept {
19 }
20
21 [[nodiscard]]
22 constexpr auto get_env() const noexcept -> stdexec::env<> {
23 return {};
24 }
25};
26
27} // namespace Tests::Utils
28
29#endif // KOKKOS_EXECUTION_TESTS_UTILS_SINK_RECEIVER_HPP
A receiver that can handle all completions and does nothing with them.
stdexec::receiver_tag receiver_concept
constexpr auto get_env() const noexcept -> stdexec::env<>
void set_value(auto &&...) &&noexcept
void set_stopped() &&noexcept
void set_error(auto &&) &&noexcept