kokkos-execution 0.0.1
Loading...
Searching...
No Matches
sync_wait.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_TESTS_UTILS_SYNC_WAIT_HPP
2#define KOKKOS_EXECUTION_TESTS_UTILS_SYNC_WAIT_HPP
3
5
7
8namespace Tests::Utils {
9
10template <
11 stdexec::__is_instance_of<Kokkos::utils::callbacks::RecorderListener> RecorderListenerType,
12 stdexec::sender Sndr
13>
14auto record_sync_wait(Sndr&& sndr) {
15 return RecorderListenerType::record(
16 [sndr = std::forward<Sndr>(sndr)]() mutable { // NOLINT(performance-move-const-arg)
17 stdexec::sync_wait(std::move(sndr)); // NOLINT(performance-move-const-arg)
18 });
19}
20
21} // namespace Tests::Utils
22
23#endif // KOKKOS_EXECUTION_TESTS_UTILS_SYNC_WAIT_HPP
auto record_sync_wait(Sndr &&sndr)
Definition sync_wait.hpp:14