conemu-inside icon indicating copy to clipboard operation
conemu-inside copied to clipboard

Compiler warning VSTHRD110

Open mstv opened this issue 2 years ago • 0 comments

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.)

mstv avatar Dec 11 '22 20:12 mstv