Open ericniebler opened 10 months ago
Comment by miscco Wednesday Jul 20, 2022 at 06:24 GMT
That feels like a monadic interface. would value
and value_or
fit here?
Comment by ericniebler Saturday Aug 27, 2022 at 16:03 GMT
Maybe :
when_all(value(cpo1), value_or(cpo2, default))
?
Issue by ericniebler Tuesday Jul 19, 2022 at 22:24 GMT Originally opened as https://github.com/NVIDIA/stdexec/issues/538
read(cpo)
is a sender that fetches the value of the querycpo
from the receiver's environment and sends it through the value channel. Here are two ideas for making it more general:read(cpo1, cpo2, cpo3)
would read three values from the receiver and send them all through the value channel.read(with(cpo, value))
.See also #539, #540