Skip to content

These handlers are *not* async, don't fall into this trap #30137

Open

Description

This is inherently bad design. Someone decided that these methods should be named "Async", and return a Task, but if you dare actually writing these as async, then the whole thing falls apart.

These should not have been async in their signature, to signal that the only way these handlers work is if you do not use continuations. This is the exact opposite of "pit of success", someone made an API that makes the incorrect usage the obvious one.


Document Details

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions