© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
13 replies
光年

An async function called without await

when i remove
await
await
before
new Test1().run1()
new Test1().run1()
,why the app output like that ?
why
test1 run1 called!
test1 run2 called!
test1 run1 called!
test1 run2 called!

is output before
main after run1 called!
main after run1 called!

the
run1()
run1()
func not be
await
await
, why it not be skip ?
and why it stop at
Task.Delay(1000)
Task.Delay(1000)
but not
await run2()
await run2()
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Async Await On Logging - Waiting Response Without Await Keyword
C#CC# / help
4y ago
❔ Multithreading an async function
C#CC# / help
3y ago
Async/Await question
C#CC# / help
2w ago
✅ async/await Task in an AWS Lambda
C#CC# / help
3y ago