C#C
C#2y ago
光年

An async function called without await

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

is output before main after run1 called!
the run1() func not be await , why it not be skip ?
and why it stop at Task.Delay(1000) but not await run2()
image.png
image.png
Was this page helpful?