Namespaces
Variants

std::execution:: on

From cppreference.net
定义于头文件 <execution>
execution :: sender auto on ( execution :: scheduler auto sched,
execution :: sender auto snd ) ;
(C++26 起)

参数

sched - 提供发送器将在其上执行的执行代理
snd - 将在与sched关联的执行资源上执行的工作

返回值

返回一个发送器,当启动时,将在与所提供调度器关联的执行资源所属的执行代理上启动所提供的发送器。

返回的发送器没有完成调度器。

示例