What are ASYNC and AWAIT in C#? Asynchronous Programming Tutorial

What are ASYNC and AWAIT in C#? Asynchronous Programming Tutorial

tutorialsEU

2 года назад

66,267 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@AllAboutDataTechnology
@AllAboutDataTechnology - 10.12.2023 07:26

this is the best tutorial on async and await that I have seen. Clear and consise examples given.

Ответить
@NHGeneral
@NHGeneral - 05.12.2023 10:34

I have a program like this:
1. Have a static string[] 'values'.
2. Task 1 is event driven, update the content of the string[] 'values' whenever condition meets.
3. Task 2 is periodically use the data from 'values' array to display status of the equipment.
Please help me how to implement this into the project.

Ответить
@Charles_001
@Charles_001 - 04.11.2023 11:12

thanks for your vieo it's best one

Ответить
@andrebarendse177
@andrebarendse177 - 01.11.2023 16:43

INTPs and Programmers shouldn't make jokes... Just putting it out there.

Ответить
@doointhedoo
@doointhedoo - 04.10.2023 04:55

I'm an American and this tutorial made me hungry and want breakfast. :)

Ответить
@sunilGMI
@sunilGMI - 19.09.2023 09:29

Thanks for making a wonderful Video on Async and Await

Ответить
@spartanAXA
@spartanAXA - 07.09.2023 20:17

Now let's get started with the tutorial

Ответить
@DonTavvit
@DonTavvit - 07.09.2023 12:52

I've spent years watching kids add huge tasking overheads which far outweigh the costs of just running synchronously.

Software engineering should be about assessing the reasons as to whether, rather than because.

The same was true with iqueryable. People were passing iterators and enumerators about, not realising they were reexecuting and time they needed something.

There should be as much time teaching kids when things should be done synchronously as well as asynchronously

Ответить
@kopilkaiser8991
@kopilkaiser8991 - 19.06.2023 01:42

This video was a great help and a step up in reaching to grasp the concept of this complicated and difficult topic in C#

Ответить
@Rodioser
@Rodioser - 30.05.2023 21:44

I struggled, and I'd say that I'm still struggling with understanding of how async works. But surely I'm making progress in understanding it and this video was a big help. For me it's the best explanation of async that I've seen.

Ответить
@vagrantrandomstuff2312
@vagrantrandomstuff2312 - 29.04.2023 17:53

Very informative sir. Thank you

Ответить
@imadabab
@imadabab - 17.04.2023 00:27

Thanks a lot. Very helpful. Actually this is a very professional simple explanation. One suggestion, you should start with sync programming first, then transfer it to async like what you have done, to show the difference, better for beginners. Thanks anyway.

Ответить
@gabrielreinfalke2277
@gabrielreinfalke2277 - 27.03.2023 11:24

Example is good, but the theory as explained is wrong. For example, a void method is a void method and a Task method is a method that returns a Task. Returning sth. is indeed different than returning nothing or sth empty as null.

Ответить
@mikicerise6250
@mikicerise6250 - 08.03.2023 18:56

Question: If your main thread crashes after having spawned async threads, what happens? Do the threads close? If not, what happens when they try to return their Task? Is there a way to do an elegant shutdown of all existing threads using a destructor in the parent thread?

Ответить
@raven.4815
@raven.4815 - 05.02.2023 10:29

Goddamn, someone that finally explains it in a non flustered way. Thank you so so much!

Ответить
@ssbunnies2015
@ssbunnies2015 - 31.01.2023 16:26

good one, simple and crisp

Ответить
@znefas
@znefas - 31.12.2022 05:21

As many have pointed out, this is not a good tutorial which actually explains asynchronous programming, it's just a display of some pre-existing async functions, which to most developers worthy of being called such, is trivial and not very useful on its own.

Ответить
@MikeFlyItAll
@MikeFlyItAll - 09.12.2022 23:09

You're a good teacher... thank you and cheers

Ответить
@Felipe-mg1pw
@Felipe-mg1pw - 05.12.2022 10:41

You should definitely not be using Thread.Sleep() inside an asynchronous method. Use Task.Delay() instead.

Ответить
@laythabdulkareem1887
@laythabdulkareem1887 - 22.11.2022 17:50

Dude, you need to enhance your presentation skills 👎👎
You are so fast!

Ответить
@funarfiif982
@funarfiif982 - 29.10.2022 14:01

Very poor video. He basically explains the syntax (which is trivial), but is not showing comparing executions of sync vs async or demonstrating the order of execution depending on method. Literally useless if you want to understand intricacies of async/await beyond basic use instructions.

Ответить
@sathishraj1
@sathishraj1 - 30.09.2022 16:17

Excellent tutorial

Ответить
@quicktastic
@quicktastic - 27.09.2022 01:21

The key to this being good is in using a simple example. Nice job.

Ответить
@couch_coach
@couch_coach - 14.09.2022 22:36

perfect explanation, thank you

Ответить
@maiksonstrife
@maiksonstrife - 24.08.2022 18:56

This kinda of tutorial should be default, it's the best one.

A lot of other tutorials abstract the lesson in 50 hundred layers of abstraction, the person that is trying to teach seems to be conflicted: should I just teach this in the best way possible or should I show off my awesome coding skills?

Ответить
@johnmullally8711
@johnmullally8711 - 12.08.2022 23:03

I get CS4014 in .Net 6.0 & VS 2022.

Ответить
@74himgup
@74himgup - 01.07.2022 16:53

sorry but your example makes no sense to me. What is the advantage, what if you do not use async and await...you did not explain anything properly....

Ответить
@martorulez
@martorulez - 30.05.2022 19:13

brilliant

Ответить
@yuriluskov
@yuriluskov - 28.05.2022 20:47

First dog looks more like a pig.

Ответить
@VentiIcedLatte
@VentiIcedLatte - 24.04.2022 18:28

now lets get started with the course
now lets get started with the content
and now lets get started with.. the tutorial

nice poem!

Ответить
@aricwilliamsdeveloper
@aricwilliamsdeveloper - 10.03.2022 16:26

this guy is an incredible teacher

Ответить
@getsmartpaul
@getsmartpaul - 10.03.2022 03:35

Thank you for this excellent coding example. It’s educational how you show the most basic first and progress to a more useful example!

Ответить
@sihlejali8453
@sihlejali8453 - 24.02.2022 20:21

What if you only have one pan? :)

Ответить
@adolfomedina1774
@adolfomedina1774 - 21.12.2021 19:28

i still dont understand, damn

Ответить
@ramonstanlyrodriguez4189
@ramonstanlyrodriguez4189 - 16.12.2021 07:16

I coded the same thing and is not working for me why is that ?

Ответить
@os-channel
@os-channel - 27.11.2021 00:33

step by step, great!

Ответить
@TutorialMax9812
@TutorialMax9812 - 01.11.2021 13:16

Hey Dennis,

leider habe ich bei der Ausführung des Codes Compilerprobleme bezüglich der Main-Funktion.
Ich verwende wie du "static async Task Main()", leider ist Visual Studio 2012 der Meinung, dass das keine geeignete statische Main-Methode ist. Ihm fehlt der Einstiegspunkt für das Programm.

P.S.: Ich habe deine C# Masterclass durchgeführt und der Kurs war super! Schade, dass ASYNC kein Teil davon war.

LG Max

Ответить
@ahadporkar7355
@ahadporkar7355 - 07.10.2021 17:18

Very Simplified and nice explanation

Ответить
@AlexxXRecorD
@AlexxXRecorD - 25.09.2021 17:29

Thanks, very interesting.!

Ответить
@GurtMan100
@GurtMan100 - 19.09.2021 16:30

Super useful tutorial! Been trying to get a grip on async for a while now, and this really helped.

Ответить
@sidali9272
@sidali9272 - 16.09.2021 00:42

Not worth watching

Ответить
@mohamedslimen1041
@mohamedslimen1041 - 24.07.2021 21:23

hi your work is very good am mobile apps dveloper and i have a game idea : is about a 2d mutiplayer game it can be just between 2 player i ilready developed it work perfectly localy but i want it to be in network like ludo king i need your help in a tutorial wich server is good for it ana does firebase realtime database is good for it or no i found many solution like foton and mlapi server please try to find a good solution for it it can be like ludo king help me please thanks

Ответить