MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / set_error

Method set_error

include/exec/async_scope.hpp:188–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187 template <class _Error>
188 void set_error(_Error&& __err) noexcept
189 {
190 auto __scope = __opstate_->__scope_;
191 STDEXEC::set_error(std::move(__opstate_->__rcvr_), static_cast<_Error&&>(__err));
192 // do not access __op_
193 // do not access this
194 __complete(__scope); // MSVC thinks this is unreachable :-/
195 }
196
197 constexpr void set_stopped() noexcept
198 {

Callers

nothing calls this directly

Calls 1

set_errorFunction · 0.70

Tested by

no test coverage detected