kokkos-execution
0.0.1
Toggle main menu visibility
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
4
#include "
kokkos-execution/stdexec.hpp
"
5
6
namespace
Tests::Utils
{
7
9
struct
SinkReceiver
{
10
using
receiver_concept
= stdexec::receiver_tag;
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
stdexec.hpp
Tests::Utils
Definition
atomic.hpp:59
stdexec
Definition
when_all.hpp:16
Tests::Utils::SinkReceiver
A receiver that can handle all completions and does nothing with them.
Definition
sink_receiver.hpp:9
Tests::Utils::SinkReceiver::receiver_concept
stdexec::receiver_tag receiver_concept
Definition
sink_receiver.hpp:10
Tests::Utils::SinkReceiver::get_env
constexpr auto get_env() const noexcept -> stdexec::env<>
Definition
sink_receiver.hpp:20
Tests::Utils::SinkReceiver::set_value
void set_value(auto &&...) &&noexcept
Definition
sink_receiver.hpp:12
Tests::Utils::SinkReceiver::set_stopped
void set_stopped() &&noexcept
Definition
sink_receiver.hpp:16
Tests::Utils::SinkReceiver::set_error
void set_error(auto &&) &&noexcept
Definition
sink_receiver.hpp:14
tests
utils
sink_receiver.hpp
Generated on
for kokkos-execution by
1.18.0