What Are You Awaiting For?

preview_player
Показать описание
When do we use Task.FromResult()? It's a simple question. Here's my extremely longwinded (but informative) answer.

Topics include:
- Rules concerning async and await
- Return types from async methods
- Task properties
- async interface methods
- Asynchronous exceptions
- Mocking async methods
- Task.CompletedTask
- Task.IsFaulted
Рекомендации по теме
Комментарии
Автор

Any questions on Task? Leave a comment.
And if you liked the video, click the 👍.

CodingTutorialsAreGo
Автор

So glad I stumbled upon this channel. The videos are so nicely structured. A perfect balance between talking too much and talking too less. You can almost put his sentences down as notes. Highly appreciated and so very helpful to really grasp the subject matter. 🤩 I hope all the lost beginners stumble across this channel. And everyone else of course 😁

sandrakyoutube
Автор

I discovered this channel recently - very high quality content for C# developers, I greatly appreciate the work.

Robd
Автор

The explanations on this channel are excellent. Thank you!

marijastojanovic
Автор

You are awesome teacher. Really appreciate your videos. It is a pity that you have so small number of subscribers but hopefully that will change. IT MUST :)

piurek
Автор

6:08 👉🏼 "It's the task we're awaiting, not the method call" 👈🏼 Most important gotcha-moment, cannot be overstated.

krccmsitp
Автор

note: 11:15 for optimization reasons, you could return ValueTask<string> so cached result could be returned as string, without creating Task wrapper

ilo
Автор

I think it would be great if you take time to talk about ValueTask and when should we use it

SharafMansour
Автор

Thanks a lot, very structured and informative explanation. :)

ghaiath-altrabulsi
Автор

Finally, I understood the difference. Thanks❤

imikhan
Автор

Hi, can you do a video on how to prepare and study for MCSD certification please?

badrulhussain