Skip to content

Compiler warning VSTHRD110 #50

@mstv

Description

@mstv

The compiler (of the .NET SDK 6.0.402) warns about:
https://github.com/Maximus5/conemu-inside/blob/13ecc261550d147f35d1037aa124013dce5dc8c3/ConEmuWinForms/ConEmuControl.cs#L87
warning VSTHRD110: Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method.

Just assign the returned Task instance to _?
Tough if this background task throws an exception, the application will be killed regardless if it has registered for AppDomain.CurrentDomain.UnhandledException.
(I have not checked the code whether that task handles all exceptions.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions