Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
❔ What happening in background when i return Task.CompletedTask? - 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;
public Task Foo() => Task.CompletedTask;
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,270
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ MAUI background task
C
C# / help
4y ago
[SOLVED] What is happening in this snippet?
C
C# / help
4y ago
✅ What is happening with my VS?
C
C# / help
7mo ago