Skip to content

C# Guide: Tutorial for writing generalized async return types #1756

@BillWagner

Description

@BillWagner

C# 7 relaxes the rules on the return types for async methods. These new rules are demonstrated by the ValueTask type in the latest framework. That handles some of the most likely scenarios.

However, we should write a tutorial that shows readers how to create their own types that satisfy the pattern for a return type from async methods.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions