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

Clarify task types #875

Merged
merged 2 commits into from
Aug 15, 2023
Merged

Clarify task types #875

merged 2 commits into from
Aug 15, 2023

Commits on Aug 7, 2023

  1. Clarify task types

    - `Task` and `Task<T>` are classified as task types despite not
      specifying builder types
    - Interfaces are allowed to be task types
    - Enums and methods are prohibited from being decorated with
      AsyncMethodBuilderAttribute
    - Task types must not be generic in more than one type parameter
      (including in terms of containing types)
    
    Discussion required for all of this, but if merged, would
    fix dotnet#854, dotnet#856, dotnet#858 and dotnet#859.
    jskeet committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    63d3375 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. Prevent nesting within generic types, for task types.

    This wording follows the wording in 15.15.2 for task builders.
    jskeet committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    4224a0b View commit details
    Browse the repository at this point in the history