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.
@DotNetCoreCentral3 жыл бұрын
@Sohail Sarwar, thanks for watching!
@laughingalien2 жыл бұрын
Excellent work, sir! A very well thought out example. Thank you for sharing your knowledge.
@DotNetCoreCentral2 жыл бұрын
Thanks for watching!
@avinandanpatra88673 жыл бұрын
Excellent explanation, could you elaborate ConfigurureAwait methods and its use
@DotNetCoreCentral3 жыл бұрын
@Avinandan Patra, thanks for watching! I will create a short video on some of these features.
@2040ashish2 жыл бұрын
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 ?
@DotNetCoreCentral2 жыл бұрын
if you go through the video the two methods ReportToBackOfficeAsync and VerifyAsync internally use Task.Delay to mimick a new task.
@sharadabasa6114 Жыл бұрын
Such awesome video for all those who get confused with async and await .... Thankyou
@DotNetCoreCentral Жыл бұрын
Glad you liked it
@Shaikhbarkat092 жыл бұрын
Can we create verifery async method without Task return type?
@DotNetCoreCentral2 жыл бұрын
I am not sure I understand the question
@juliansegura55073 жыл бұрын
This might be the best tutorial I have seen about async/await
@DotNetCoreCentral3 жыл бұрын
@Julian Segura, thanks for watching!
@Madhavabakkamuntala9 ай бұрын
It is awesome explanation done I hope you will do more vidios on Task
@microtech24483 жыл бұрын
Can you please explain with help of diagrams how and when threads switch and how they flow?
@eliassal14 жыл бұрын
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
@DotNetCoreCentral4 жыл бұрын
@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.
@eliassal14 жыл бұрын
@@DotNetCoreCentral Ok got it, happy new year and hope you do more wonderful videos
@DotNetCoreCentral4 жыл бұрын
@@eliassal1 thanks! and happy new year to you as well!
@MTSightseeing2 жыл бұрын
Can u make a video on asp. Net core api in depth
@abidshaik96142 жыл бұрын
Good one. Do a async await video with Database operations.
@MTSightseeing2 жыл бұрын
Also make a video on repository pattern in api and mvc
@DotNetCoreCentral2 жыл бұрын
Sure
@MTSightseeing2 жыл бұрын
@@DotNetCoreCentral upload as soon as possible
@hasan_shans4 жыл бұрын
When we use async/await, does it create a new thread?
@DotNetCoreCentral4 жыл бұрын
@Hasan Shans, it will borrow a thread from the thread pool internally.
@hasan_shans4 жыл бұрын
@@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
@DotNetCoreCentral4 жыл бұрын
@@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_shans3 жыл бұрын
@@DotNetCoreCentral thank you!
@DotNetCoreCentral3 жыл бұрын
@@hasan_shans you are welcome!
@VerdonTrigance2 жыл бұрын
why this is in 'advance' playlist? this is a basic stuff
@harishkommuri53504 жыл бұрын
Thank you, it was Indeed clear explanation, it was value add to me.
@DotNetCoreCentral4 жыл бұрын
@Harish Kommuri, thanks for watching!
@arandomambipom94442 жыл бұрын
This was great, ty
@DotNetCoreCentral Жыл бұрын
thanks
@bittusrivastava1 Жыл бұрын
thanks a lot for this video
@DotNetCoreCentral Жыл бұрын
You are most welcome
@TommiLipponen4 жыл бұрын
Excellent stuff! Thanks
@DotNetCoreCentral4 жыл бұрын
@Finn, thanks for watching the video!
@kctripathy3 жыл бұрын
Excellent!!
@DotNetCoreCentral3 жыл бұрын
@Kishor C Tripathy, thanks for watching the video!
@mahendranchinnaiah75934 жыл бұрын
Thank you so much.
@DotNetCoreCentral4 жыл бұрын
@Mahendran Chinnaiah, thank you so much for watching the video!
@MTSightseeing2 жыл бұрын
Please
@ramankaplish3055 Жыл бұрын
Wonder ful learning thanks a lot dot. Net central team..