cplusplus / sender-receiver

Issues list for P2300
Apache License 2.0
20 stars 3 forks source link

stopped_as_optional should handle void senders #132

Open ericniebler opened 10 months ago

ericniebler commented 10 months ago

Issue by ericniebler Friday Oct 22, 2021 at 00:55 GMT Originally opened as https://github.com/NVIDIA/stdexec/issues/222


... by mapping void to some unit (monostate?) type.

lewissbaker commented 3 months ago

@ericniebler Is the classification as P1 enhancement here based on the assumption that it's currently ill-formed to apply stopped_as_optional() to a sender that completes with set_value_t() in that we can later make this well-formed as completing with set_value_t(optional<monostate>)?

ericniebler commented 3 months ago

Yes