Copilot commented on code in PR #6795:
URL: https://github.com/apache/ignite-3/pull/6795#discussion_r2435180123


##########
modules/platforms/dotnet/Apache.Ignite.Tests/IgniteServerBase.cs:
##########
@@ -203,7 +206,7 @@ private void ListenLoopInternal()
 
             if (AllowMultipleConnections)
             {
-                Task.Run(handleAction);
+                _ = Task.Run(handleAction);

Review Comment:
   Fire-and-forget task execution can swallow exceptions. Consider using 
`Task.Run(handleAction).ContinueWith(t => Console.WriteLine($\"Error handling 
connection: {t.Exception}\"), TaskContinuationOptions.OnlyOnFaulted)` to log 
any unhandled exceptions from the background task.
   ```suggestion
                   _ = Task.Run(handleAction)
                       .ContinueWith(
                           t => Console.WriteLine($"Error handling connection: 
{t.Exception}"),
                           TaskContinuationOptions.OnlyOnFaulted);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to