NVIDIA / stdexec

`std::execution`, the proposed C++ framework for asynchronous and parallel programming.
Apache License 2.0
1.56k stars 159 forks source link

Consider giving senders an environment and moving sender queries there #641

Closed ericniebler closed 1 year ago

ericniebler commented 2 years ago

The senders for ensure_started and split need to keep copies of the sender just so that sender queries can still work. If the queries were in a separate environment object, we can just save that and move the sender into the shared state. EDIT: or in the case of ensure_started, to drop the sender entirely after it is connected.

See also #466

ericniebler commented 1 year ago

See brycelelbach/wg21_p2300_execution#17 for the associated specification change.