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_t;
11
12 void set_value(auto&&...) noexcept {
13 }
14 void set_error(auto&&) noexcept {
15 }
16 void set_stopped() noexcept {
17 }
18
19 [[nodiscard]]
20 constexpr auto get_env() const noexcept -> stdexec::env<> {
21 return {};
22 }
23};
24
25} // namespace Tests::Utils
26
27#endif // KOKKOS_EXECUTION_TESTS_UTILS_SINK_RECEIVER_HPP
A receiver that can handle all completions and does nothing with them.
void set_value(auto &&...) noexcept
stdexec::receiver_t receiver_concept
void set_error(auto &&) noexcept
constexpr auto get_env() const noexcept -> stdexec::env<>