https://github.com/brisinger/asyncawait
Async and Await, from synchronous, task based asynchronous executions till async and await asynchronous sequential style code. It covers everything required to understand about Async and Await keywords and how it differs from awaitable task based programming with ContinueWith syntax.
https://github.com/brisinger/asyncawait
asynchronous-programming
Last synced: 10 months ago
JSON representation
Async and Await, from synchronous, task based asynchronous executions till async and await asynchronous sequential style code. It covers everything required to understand about Async and Await keywords and how it differs from awaitable task based programming with ContinueWith syntax.
- Host: GitHub
- URL: https://github.com/brisinger/asyncawait
- Owner: Brisinger
- Created: 2022-05-03T09:29:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-03T09:58:59.000Z (about 4 years ago)
- Last Synced: 2024-10-04T19:43:43.175Z (over 1 year ago)
- Topics: asynchronous-programming
- Language: C#
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AsyncAwait
Async and Await, from synchronous, task based asynchronous executions till async and await asynchronous sequential style code. It covers everything required to understand about Async and Await keywords and how it differs from awaitable task based programming with ContinueWith syntax.
A simple .NET 6 Console based application.
To build the application use command: dotnet build.
To run the console app use command: dotnet run.
It contains class with synchronous methods.
It contains class with Task based methods executed asynchronously on different task threads.
It contains class with Async methods executed asynchronously, with await statements on the same task thread from thread pool.
Shows the difference between execution of methods in 3 different classes.
The async keyword allocates task thread from thread pool provided by CPU, in the most optimized manner such that no threads remain idle.