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

Allow AsyncMethodBuilder() attribute on methods #24950

Closed
BillWagner opened this issue Jul 1, 2021 · 1 comment · Fixed by #24973
Closed

Allow AsyncMethodBuilder() attribute on methods #24950

BillWagner opened this issue Jul 1, 2021 · 1 comment · Fixed by #24973
Assignees
Labels
🏁 Release: .NET 6 Issues and PRs for the .NET 6 release doc-idea Indicates issues that are suggestions for new topics [org][type][category] Pri1 High priority, do before Pri2 and Pri3

Comments

@BillWagner
Copy link
Member

This is an advanced scenario that enables library authors to optimize away allocations on async method.

See dotnet/csharplang#1407

@PRMerger14 PRMerger14 added the Pri3 label Jul 1, 2021
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Jul 1, 2021
@BillWagner BillWagner self-assigned this Jul 1, 2021
@BillWagner BillWagner added doc-idea Indicates issues that are suggestions for new topics [org][type][category] 🏁 Release: .NET 6 Issues and PRs for the .NET 6 release labels Jul 1, 2021
@BillWagner BillWagner added Pri1 High priority, do before Pri2 and Pri3 and removed Pri3 ⌚ Not Triaged Not triaged labels Jul 1, 2021
@BillWagner
Copy link
Member Author

There are a few tasks here for this issue:

  1. The General attributes read by the compiler article does not include AsyncMethodBuilder. That was an oversight from when generalized async return types was added. The generalized async return types should add a link to this update.
  2. Both the attributes read, and the generalized async return types should include information on the new behavior for the attribute.
  3. Create a new issue for an article in the advance section that covers:
  • How to use the pooling builder that will be provided in .NET 6, both for different types and for individual methods
  • How to create a builder.

The last task is a separate task because of the relatively small audience. It can wait until later in the release cycle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏁 Release: .NET 6 Issues and PRs for the .NET 6 release doc-idea Indicates issues that are suggestions for new topics [org][type][category] Pri1 High priority, do before Pri2 and Pri3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants