kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Kokkos::Execution::ExecutionSpaceImpl::SyncWait Struct Reference

#include <sync_wait.hpp>

Public Member Functions

template<stdexec::sender Sndr>
auto operator() (Sndr &&sndr) const noexcept(false) -> std::optional< stdexec::__sync_wait::__value_tuple_for_t< Sndr > >

Detailed Description

Definition at line 52 of file sync_wait.hpp.

Member Function Documentation

◆ operator()()

template<stdexec::sender Sndr>
auto Kokkos::Execution::ExecutionSpaceImpl::SyncWait::operator() ( Sndr && sndr) const->std::optional< stdexec::__sync_wait::__value_tuple_for_t< Sndr > >
inline

According to https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2300r10.html#spec-execution.senders.consumers.sync_wait, it has to return an engaged optional (on the value channel).

Todo
Make the noexcept specifier depend on the completion signatures of sndr.

Definition at line 60 of file sync_wait.hpp.

References Kokkos::Execution::Impl::State::error, and Kokkos::Execution::Impl::State::loop.


The documentation for this struct was generated from the following file:
  • /__w/kokkos-execution/kokkos-execution/kokkos-execution/execution_space/sync_wait.hpp