Skip to content

Asynchronous examples include incorrect descriptions of async/await behavior #421

@sharwell

Description

@sharwell

The examples state that the location of a throw statement relative to the first await statement affects the exception behavior. This is not correct, per §8.9.5 The throw statement in the C# Language Specification. In a task-returning async method, all exceptions are propagated through the returned task, regardless of the location of the throw statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions