Async/Await an Introduction (Asynchronous programming in .NET 5.0)

  Рет қаралды 16,653

DotNet Core Central

DotNet Core Central

Күн бұрын

Пікірлер: 48
@SohailKhan1981
@SohailKhan1981 3 жыл бұрын
Very clear and concise explanation. I read a few articles about it and watched some other videos but my concept was still not clear. You explained this very well. Keep up your good work.
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Sohail Sarwar, thanks for watching!
@laughingalien
@laughingalien 2 жыл бұрын
Excellent work, sir! A very well thought out example. Thank you for sharing your knowledge.
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
Thanks for watching!
@avinandanpatra8867
@avinandanpatra8867 3 жыл бұрын
Excellent explanation, could you elaborate ConfigurureAwait methods and its use
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Avinandan Patra, thanks for watching! I will create a short video on some of these features.
@2040ashish
@2040ashish 2 жыл бұрын
at 17:18 , how did the async Tasks start, as soon as we declared the async task, does it start ? like on line 18 and 19 ?? As per my understanding we need to start the task using Task.run(() => { } ) also in .net core web API we use Async and Await in all the Action methods, how does it give benefit there ?
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
if you go through the video the two methods ReportToBackOfficeAsync and VerifyAsync internally use Task.Delay to mimick a new task.
@sharadabasa6114
@sharadabasa6114 Жыл бұрын
Such awesome video for all those who get confused with async and await .... Thankyou
@DotNetCoreCentral
@DotNetCoreCentral Жыл бұрын
Glad you liked it
@Shaikhbarkat09
@Shaikhbarkat09 2 жыл бұрын
Can we create verifery async method without Task return type?
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
I am not sure I understand the question
@juliansegura5507
@juliansegura5507 3 жыл бұрын
This might be the best tutorial I have seen about async/await
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Julian Segura, thanks for watching!
@Madhavabakkamuntala
@Madhavabakkamuntala 9 ай бұрын
It is awesome explanation done I hope you will do more vidios on Task
@microtech2448
@microtech2448 3 жыл бұрын
Can you please explain with help of diagrams how and when threads switch and how they flow?
@eliassal1
@eliassal1 4 жыл бұрын
At minute 8:56, When you start using var driverTask, var verifierTask...... we get a warning when buildin as follows: All projects are up-to-date for restore. \Async.Await.Demo\Program.cs(14,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [\Async.Await.Demo\Async.Await.Demo.csproj] Async.Await.Demo -> \Async.Await.Demo\bin\Debug et5.0\Async.Await.Demo.dll Does this mean it is not a good practice
@DotNetCoreCentral
@DotNetCoreCentral 4 жыл бұрын
@Salam Elias, I am doing a Task.WaitAll just in the line below, which is a better approach. And if you use Task.WaitAll, you should not get the warning to use await, as Task.WaitAll is the same as calling await on each of the tasks but in parallel.
@eliassal1
@eliassal1 4 жыл бұрын
@@DotNetCoreCentral Ok got it, happy new year and hope you do more wonderful videos
@DotNetCoreCentral
@DotNetCoreCentral 4 жыл бұрын
@@eliassal1 thanks! and happy new year to you as well!
@MTSightseeing
@MTSightseeing 2 жыл бұрын
Can u make a video on asp. Net core api in depth
@abidshaik9614
@abidshaik9614 2 жыл бұрын
Good one. Do a async await video with Database operations.
@MTSightseeing
@MTSightseeing 2 жыл бұрын
Also make a video on repository pattern in api and mvc
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
Sure
@MTSightseeing
@MTSightseeing 2 жыл бұрын
@@DotNetCoreCentral upload as soon as possible
@hasan_shans
@hasan_shans 4 жыл бұрын
When we use async/await, does it create a new thread?
@DotNetCoreCentral
@DotNetCoreCentral 4 жыл бұрын
@Hasan Shans, it will borrow a thread from the thread pool internally.
@hasan_shans
@hasan_shans 4 жыл бұрын
@@DotNetCoreCentral But is there a scenario when it doesn't use a thread at all? Because a lot of people recommend this article, where it states that async doesn't use a thread: Stephen Cleary - There is no thread
@DotNetCoreCentral
@DotNetCoreCentral 4 жыл бұрын
@@hasan_shans Based on my understanding and tests that I performed, if you await immediately after making an async call, there is no new thread, as I explained in this video itself when I showed the behavior. At that point there is no incentive to create a new thread, instead, it will continue on the main thread.
@hasan_shans
@hasan_shans 3 жыл бұрын
@@DotNetCoreCentral thank you!
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@@hasan_shans you are welcome!
@VerdonTrigance
@VerdonTrigance 2 жыл бұрын
why this is in 'advance' playlist? this is a basic stuff
@harishkommuri5350
@harishkommuri5350 4 жыл бұрын
Thank you, it was Indeed clear explanation, it was value add to me.
@DotNetCoreCentral
@DotNetCoreCentral 4 жыл бұрын
@Harish Kommuri, thanks for watching!
@arandomambipom9444
@arandomambipom9444 2 жыл бұрын
This was great, ty
@DotNetCoreCentral
@DotNetCoreCentral Жыл бұрын
thanks
@bittusrivastava1
@bittusrivastava1 Жыл бұрын
thanks a lot for this video
@DotNetCoreCentral
@DotNetCoreCentral Жыл бұрын
You are most welcome
@TommiLipponen
@TommiLipponen 4 жыл бұрын
Excellent stuff! Thanks
@DotNetCoreCentral
@DotNetCoreCentral 4 жыл бұрын
@Finn, thanks for watching the video!
@kctripathy
@kctripathy 3 жыл бұрын
Excellent!!
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Kishor C Tripathy, thanks for watching the video!
@mahendranchinnaiah7593
@mahendranchinnaiah7593 4 жыл бұрын
Thank you so much.
@DotNetCoreCentral
@DotNetCoreCentral 4 жыл бұрын
@Mahendran Chinnaiah, thank you so much for watching the video!
@MTSightseeing
@MTSightseeing 2 жыл бұрын
Please
@ramankaplish3055
@ramankaplish3055 Жыл бұрын
Wonder ful learning thanks a lot dot. Net central team..
Pattern Matching enhancements in C# 9.0 (.NET 5.0)
9:31
DotNet Core Central
Рет қаралды 2,4 М.
The Right Way To Build Async APIs in ASP.NET Core
20:12
Milan Jovanović
Рет қаралды 22 М.
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
What are ASYNC and AWAIT in C#? Asynchronous Programming Tutorial
18:34
How to use Async/Await/Task in C#
29:45
Raw Coding
Рет қаралды 77 М.
8 await async mistakes that you SHOULD avoid in .NET
21:13
Nick Chapsas
Рет қаралды 316 М.
Internals of Select and SelectMany (LINQ Internals)
15:33
DotNet Core Central
Рет қаралды 6 М.
C# Async Programming - Part 2: Intro in Task, async, and await
44:45
Rainer Stropek
Рет қаралды 39 М.
IEnumerable VS IQueryable (in .NET Core)
10:52
DotNet Core Central
Рет қаралды 11 М.
Asynchronous Programming in .NET - How ASYNC and AWAIT Work
14:42
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН