Skip to content

Where is the spec proposal for custom async method builders added in C# 7.0? #17468

@jnm2

Description

@jnm2

Mentioned here: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7#generalized-async-return-types

And mentioned here, with the incorrect statement that any type can be used as an async return type so long as it has a public GetAwaiter method: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/async-return-types#generalized-async-return-types-and-valuetasktresult

This is not true. The AsyncMethodBuilder attribute and a valid builder type is required. I was hoping to look at the spec to see some documentation of the actual requirements of the async method builder type.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions