Deferred Exceptions

preview_player
Показать описание
If you get something wrong, you want to be told about it straight away. But in C#, deferred execution can do the exact opposite.

Topics include:
- .NET async and await
- yield return
- exception handling
- local functions
- optimizing APIs
- deferred execution
Рекомендации по теме
Комментарии
Автор

Any other C# features you're interested in? Leave a comment.
And if you liked the video, click the 👍.

CodingTutorialsAreGo
Автор

Wow this topic is really interesting . I never thought about wrapping async fucntion in sync function where we can make condidtions check. Thanks that can be really usefull

przemosz
Автор

Async methods execute immediately in the same thread they were called in until they hit the await keyword. So the exception blows up there but the state machine catches it and returns faulted task with the same exception.

evanlt
Автор

The task execution is never deferred, it is executed immediatly after being called ?! However, you can choice the place in the proogam where to wait it after being called ?! Can you tell me if i a wrong and why ? Thank you

foudilbenouci
Автор

does it work the same way in javascript?

lyflfflyflff
Автор

great, is it possible to return the function without declaring it?

haroldpepete