Simply put Task.Run is a simplified version of TaskFactory and does exactly the same. With taskfactory you just have some more options(e.g. TaskCreationOptions)
Difference between Task and TaskFactory
-
10-06-2023 - |
Pergunta
Can any one explain the difference between Task and Task Factory
?
task :
public Task(Func<TResult> function);
Task Factory:
public static TaskFactory<TResult> Factory { get; }
Please explain with uses.
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow