Skip to content

split() can't support both move-only senders and forwarding sender queries #466

@ericniebler

Description

@ericniebler

Currently the sender is copied into each of the split sender so that the split senders can respond to sender queries by forwarding them to the (copy of the) original sender. However, this precludes split() being used with move-only/single-shot senders, which is one of its most important use cases.

One possibility is to move sender queries into an environment, as with receivers. Then we can copy the environment into the shared state and throw away the sender.

See also #641

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1bugSomething isn't workingstandardizationissues related to the std::execution proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions