-
Notifications
You must be signed in to change notification settings - Fork 4
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
sender concepts for awaitable types #305
Comments
a type that satisfies
we don't, but we do require an opt-in to satisfy the
the problem is that somewhere along the way, the |
Thank you for clarification! |
I also sent a list of bugs to lwgchair to import, including one for this issue that has a proposed resolution. |
I don't think #306 was one of the ones you asked to be opened as an issue. I'll update LWG 4202 to include that proposed resolution. |
I was making my own coroutine task
basic_task<Ret, Queries...>
which is an awaitable for promises that have an env that is queryable for all specified Queries...The current spec defines the following two sender concepts
The current concepts require
basic_task<Ret, Queries...>
to be awaitable inenv-promise<empty_env>
which is too strict, IMHO. Instead we could require forsender_in
:There are some places where we mandate input to satisfy the sender concept. The most used one is for
connect(sndr, rcvr)
expressions. The current spec states https://eel.is/c++draft/exec.snd#exec.connect-6I would like to Mandate
receiver<Rcvr> && sender_in<Sndr, env_of_t<Rcvr>>
Any thoughts?
The text was updated successfully, but these errors were encountered: