Skip to content

generalize the read sender factory #54

Open
@ericniebler

Description

@ericniebler

Issue by ericniebler
Tuesday Jul 19, 2022 at 22:24 GMT
Originally opened as NVIDIA/stdexec#538


read(cpo) is a sender that fetches the value of the query cpo from the receiver's environment and sends it through the value channel. Here are two ideas for making it more general:

  • Support reading multiple CPOs at a time; e.g., read(cpo1, cpo2, cpo3) would read three values from the receiver and send them all through the value channel.
  • Support a way to specify a default value to use if the receiver's environment doesn't implement the CPO; e.g., read(with(cpo, value)).

See also #539, #540

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementNew feature or requestneeds-paperNeeds a paper to be written

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions