Maximus5 / conemu-inside

An example, how to embed http://conemu.github.io/ into another graphical application
57 stars 42 forks source link

Compiler warning VSTHRD110 #50

Open mstv opened 1 year ago

mstv commented 1 year ago

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