Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::execution::upon_stopped

      From cppreference.com
      <cpp‎ |execution
       
       
      Execution control library
       
      Defined in header<execution>
      execution::senderauto upon_stopped( execution::senderauto input,
                                           std::invocableauto function);
      (since C++26)

      [edit]Parameters

      input - sender which once gets "stop token", will notify the new node to execute the function
      function - invocable to be called in case a "stopped" signal is sent to the input sender

      [edit]Return value

      Returns a sender describing the task graph described by the input sender, with an added node of invoking the provided function in case the "stopped" signal is sent to the input sender.

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/execution/upon_stopped&oldid=176772"

      [8]ページ先頭

      ©2009-2025 Movatter.jp