Namespaces
Variants

std::execution:: let_stopped

From cppreference.net
헤더에 정의됨 <execution>
execution :: sender auto let_stopped ( execution :: sender auto input,
std:: invocable auto function ) ;
(C++26부터)

매개변수

input - 중단되었던 sender가 함수를 실행하기 위해 "stop token"을 전송함
function - input sender에서 오류 발생 시 오류와 함께 호출될 호출 가능 객체

반환값

입력 발신자가 설명하는 작업 그래프를 반환하며, "stopped" 신호가 전송될 때 호출되는 추가 노드가 포함됩니다.

예제