Skip to content

Why doesn't the Task.Delay method have Async suffix? #59761

Answered by stephentoub
kiminuo asked this question in Q&A
Discussion options

You must be logged in to vote

Because Task itself is about asynchrony and so it's deemed duplicative... effectively the "async" is built into the type, e.g. Task.Run isn't Task.RunAsync. Only when there's ambiguity, e.g. we added a synchronous Wait() method, have we used an Async suffix, e.g. WaitAsync.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kiminuo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants