Предположим, у меня есть 2 метода
Код: Выделить всё
public async Task DoSomething1()
{
await Task.Run(() =>
{
for(int i = 0; i
{
for(int i = 0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/47702541/task-return-type-with-and-without-async[/url]