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

Method set_value

include/exec/libdispatch_queue.hpp:445–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443
444 template <class... As>
445 void set_value(As &&...as) noexcept
446 {
447 using tuple_t = STDEXEC::__decayed_std_tuple<As...>;
448
449 if constexpr (MayThrow)
450 {
451 STDEXEC_TRY
452 {
453 shared_state_.data_.template emplace<tuple_t>(std::move(as)...);
454 }
455 STDEXEC_CATCH_ALL
456 {
457 STDEXEC::set_error(std::move(shared_state_.rcvr_), std::current_exception());
458 }
459 }
460 else
461 {

Callers

nothing calls this directly

Calls 1

set_errorFunction · 0.70

Tested by

no test coverage detected