Namespaces
Variants
Actions

std::execution::on

From cppreference.com
< cpp‎ | execution
 
C++
 
Execution control library
Defined in header <execution>
execution::sender auto on( execution::scheduler auto sched,
                           execution::sender auto snd );
(since C++26)

[edit] Parameters

sched - provides execution agent on which the sender will be executed
snd - work to be executed on the execution resource associated with sched

[edit] Return value

Returns a sender which, when started, will start the provided sender on an execution agent belonging to the execution resource associated with the provided scheduler.

The returned sender has no completion schedulers.

[edit] Example

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant