C#C
C#3y ago
10 replies
CrosRoad95

❔ What happening in background when i return Task.CompletedTask?

I just wonder, what c# doing if i have async method returning Task.completedTask? does it try to synchronously continue without actualy creating a task?
public Task Foo() => Task.CompletedTask;
Was this page helpful?