I think that the rule 1825 deserves slight adjustment. If the operation takes too much time to execute, using Task.Run could lead to performance degradation and resource leaks as thread pool threads will be unavailable for a long time. A way to overcome this is to create a new thread, which could be done with Task.Factory.StartNew, an extended version of Task.Run (or the latter is a shortcut for Task.Factory.StartNew if we'd follow it chronologically).
I think that the rule 1825 deserves slight adjustment. If the operation takes too much time to execute, using
Task.Run
could lead to performance degradation and resource leaks as thread pool threads will be unavailable for a long time. A way to overcome this is to create a new thread, which could be done withTask.Factory.StartNew
, an extended version ofTask.Run
(or the latter is a shortcut forTask.Factory.StartNew
if we'd follow it chronologically).