Skip to content

"async void" should not be used #80

@ElemarJR

Description

@ElemarJR

This:

async void FooAsync()
{
}

Becomes:

async Task FooAsync()
{
}

It's safe to assume that other than something looking like void (sender object, T e) where T:EventArgs is a wrong use of async void.

Severity: Warning
Diagnostic Id: CC0077
Category: Usage

@RobertoRodrigues is working on it.

Metadata

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