Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grant connect permission to return a type other than decltype(sndr.connect(rcvr)) #281

Open
ericniebler opened this issue Jul 19, 2024 · 1 comment

Comments

@ericniebler
Copy link
Collaborator

@ispeters recent work on async stacks has involved changing the connect customization point to wrap the resulting operation state into one that maintains back pointers for reconstructing the stack.

The current specification of connect does not allow for that. We should loosen the requirements on the return type of connect.

This cannot be done after we ship connect.

@lewissbaker
Copy link
Collaborator

It's not clear to me that we can't do async-stacks using domain-based customization-points.

Since the connect() CPO is defined in terms of domain.transform_sender, we already have the ability to have connect(sdr, rcvr) return a different operation-state type than sdr.connect() since transform_sender can return a different sender type whose connect() member function returns a different operation-state type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants