-
Notifications
You must be signed in to change notification settings - Fork 649
Name consistency of async function attributes #918
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
Comments
The reason for the difference is that they put them in a |
I was recently wondering why we have separate |
I mean that it doesn't make sense for users to put |
The whole API was just whatever made sense as I was working on it, and it could be a good idea to change it. We could have three attribute arguments:
And the combination of these produces the outcomes we have today. |
Another option is:
as the |
Its true that |
Is there any use case where |
You're right, its not necessary. But if you wanted to get an error if you accidentally made your future |
An extension to this would be to integrate the |
I think @withoutboats's idea about putting |
Attributes of
async
andasync_stream
to box them which are currently namedpinned
andpinned_send
should be the same asasync_move
andasync_stream_move
likeboxed
andboxed_send
from users' aspects. That is becauseasync
orasync_stream
functions are pinned anyway whether they are boxed or not.The text was updated successfully, but these errors were encountered: