Submit Search
Upload
Correcting common mistakes, async await
•
Download as PPTX, PDF
•
0 likes
•
718 views
Brandon Minnick, MBA
Follow
Correcting common mistakes, async await
Read less
Read more
Technology
Report
Report
1 of 27
Download now
Recommended
Introduction to Serverless with AWS Lambda in C#.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Brandon Minnick, MBA
Correcting Common Mistakes, AsyncAwait.pptx
Correcting Common Mistakes, AsyncAwait.pptx
Brandon Minnick, MBA
The .NET MAUI Community Toolkits.pptx
The .NET MAUI Community Toolkits.pptx
Brandon Minnick, MBA
Introduction to Serverless with AWS Lambda in C#.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Brandon Minnick, MBA
Correcting Common Async Await Mistakes in .NET
Correcting Common Async Await Mistakes in .NET
Brandon Minnick, MBA
AWS Toolkit.pptx
AWS Toolkit.pptx
Brandon Minnick, MBA
Building GraphQL APIs in C#.pptx
Building GraphQL APIs in C#.pptx
Brandon Minnick, MBA
Building MAUI UIs in C#.pptx
Building MAUI UIs in C#.pptx
Brandon Minnick, MBA
Recommended
Introduction to Serverless with AWS Lambda in C#.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Brandon Minnick, MBA
Correcting Common Mistakes, AsyncAwait.pptx
Correcting Common Mistakes, AsyncAwait.pptx
Brandon Minnick, MBA
The .NET MAUI Community Toolkits.pptx
The .NET MAUI Community Toolkits.pptx
Brandon Minnick, MBA
Introduction to Serverless with AWS Lambda in C#.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Brandon Minnick, MBA
Correcting Common Async Await Mistakes in .NET
Correcting Common Async Await Mistakes in .NET
Brandon Minnick, MBA
AWS Toolkit.pptx
AWS Toolkit.pptx
Brandon Minnick, MBA
Building GraphQL APIs in C#.pptx
Building GraphQL APIs in C#.pptx
Brandon Minnick, MBA
Building MAUI UIs in C#.pptx
Building MAUI UIs in C#.pptx
Brandon Minnick, MBA
Creating Apps with .NET MAUI.pptx
Creating Apps with .NET MAUI.pptx
Brandon Minnick, MBA
Building GraphQL APIs in C#.pptx
Building GraphQL APIs in C#.pptx
Brandon Minnick, MBA
Introduction to Serverless with AWS Lambda in C#.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Brandon Minnick, MBA
Consuming GraphQL APIs in C#.pptx
Consuming GraphQL APIs in C#.pptx
Brandon Minnick, MBA
Correcting Common .NET Mistakes in Async Await .pptx
Correcting Common .NET Mistakes in Async Await .pptx
Brandon Minnick, MBA
Building GraphQL API in C#.pptx
Building GraphQL API in C#.pptx
Brandon Minnick, MBA
Introducing .NET MAUI Toolkit.pptx
Introducing .NET MAUI Toolkit.pptx
Brandon Minnick, MBA
Building MAUI UI in C#.pptx
Building MAUI UI in C#.pptx
Brandon Minnick, MBA
Building GraphQL API in C#.pptx
Building GraphQL API in C#.pptx
Brandon Minnick, MBA
Creating Apps with .NET MAUI
Creating Apps with .NET MAUI
Brandon Minnick, MBA
Creating AppsWith .NET MAUIfor iOS, Android, macOS + Windows
Creating AppsWith .NET MAUIfor iOS, Android, macOS + Windows
Brandon Minnick, MBA
Creating Xamarin.Forms UIs is C#
Creating Xamarin.Forms UIs is C#
Brandon Minnick, MBA
The Future of Xamarin
The Future of Xamarin
Brandon Minnick, MBA
Creating iOS & Android Apps using Xamarin
Creating iOS & Android Apps using Xamarin
Brandon Minnick, MBA
Xamarin + GraphQL
Xamarin + GraphQL
Brandon Minnick, MBA
Creating Native iOS & Android Apps in C#
Creating Native iOS & Android Apps in C#
Brandon Minnick, MBA
DevReach: Creating Xamarin.Forms UIs in C#
DevReach: Creating Xamarin.Forms UIs in C#
Brandon Minnick, MBA
The Future of Xamarin
The Future of Xamarin
Brandon Minnick, MBA
Creating Serverless Apps without Writing Any Code
Creating Serverless Apps without Writing Any Code
Brandon Minnick, MBA
The Future of Xamarin
The Future of Xamarin
Brandon Minnick, MBA
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
More Related Content
More from Brandon Minnick, MBA
Creating Apps with .NET MAUI.pptx
Creating Apps with .NET MAUI.pptx
Brandon Minnick, MBA
Building GraphQL APIs in C#.pptx
Building GraphQL APIs in C#.pptx
Brandon Minnick, MBA
Introduction to Serverless with AWS Lambda in C#.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Brandon Minnick, MBA
Consuming GraphQL APIs in C#.pptx
Consuming GraphQL APIs in C#.pptx
Brandon Minnick, MBA
Correcting Common .NET Mistakes in Async Await .pptx
Correcting Common .NET Mistakes in Async Await .pptx
Brandon Minnick, MBA
Building GraphQL API in C#.pptx
Building GraphQL API in C#.pptx
Brandon Minnick, MBA
Introducing .NET MAUI Toolkit.pptx
Introducing .NET MAUI Toolkit.pptx
Brandon Minnick, MBA
Building MAUI UI in C#.pptx
Building MAUI UI in C#.pptx
Brandon Minnick, MBA
Building GraphQL API in C#.pptx
Building GraphQL API in C#.pptx
Brandon Minnick, MBA
Creating Apps with .NET MAUI
Creating Apps with .NET MAUI
Brandon Minnick, MBA
Creating AppsWith .NET MAUIfor iOS, Android, macOS + Windows
Creating AppsWith .NET MAUIfor iOS, Android, macOS + Windows
Brandon Minnick, MBA
Creating Xamarin.Forms UIs is C#
Creating Xamarin.Forms UIs is C#
Brandon Minnick, MBA
The Future of Xamarin
The Future of Xamarin
Brandon Minnick, MBA
Creating iOS & Android Apps using Xamarin
Creating iOS & Android Apps using Xamarin
Brandon Minnick, MBA
Xamarin + GraphQL
Xamarin + GraphQL
Brandon Minnick, MBA
Creating Native iOS & Android Apps in C#
Creating Native iOS & Android Apps in C#
Brandon Minnick, MBA
DevReach: Creating Xamarin.Forms UIs in C#
DevReach: Creating Xamarin.Forms UIs in C#
Brandon Minnick, MBA
The Future of Xamarin
The Future of Xamarin
Brandon Minnick, MBA
Creating Serverless Apps without Writing Any Code
Creating Serverless Apps without Writing Any Code
Brandon Minnick, MBA
The Future of Xamarin
The Future of Xamarin
Brandon Minnick, MBA
More from Brandon Minnick, MBA
(20)
Creating Apps with .NET MAUI.pptx
Creating Apps with .NET MAUI.pptx
Building GraphQL APIs in C#.pptx
Building GraphQL APIs in C#.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Consuming GraphQL APIs in C#.pptx
Consuming GraphQL APIs in C#.pptx
Correcting Common .NET Mistakes in Async Await .pptx
Correcting Common .NET Mistakes in Async Await .pptx
Building GraphQL API in C#.pptx
Building GraphQL API in C#.pptx
Introducing .NET MAUI Toolkit.pptx
Introducing .NET MAUI Toolkit.pptx
Building MAUI UI in C#.pptx
Building MAUI UI in C#.pptx
Building GraphQL API in C#.pptx
Building GraphQL API in C#.pptx
Creating Apps with .NET MAUI
Creating Apps with .NET MAUI
Creating AppsWith .NET MAUIfor iOS, Android, macOS + Windows
Creating AppsWith .NET MAUIfor iOS, Android, macOS + Windows
Creating Xamarin.Forms UIs is C#
Creating Xamarin.Forms UIs is C#
The Future of Xamarin
The Future of Xamarin
Creating iOS & Android Apps using Xamarin
Creating iOS & Android Apps using Xamarin
Xamarin + GraphQL
Xamarin + GraphQL
Creating Native iOS & Android Apps in C#
Creating Native iOS & Android Apps in C#
DevReach: Creating Xamarin.Forms UIs in C#
DevReach: Creating Xamarin.Forms UIs in C#
The Future of Xamarin
The Future of Xamarin
Creating Serverless Apps without Writing Any Code
Creating Serverless Apps without Writing Any Code
The Future of Xamarin
The Future of Xamarin
Recently uploaded
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
Recently uploaded
(20)
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Slack Application Development 101 Slides
Slack Application Development 101 Slides
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Correcting common mistakes, async await
1.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
3.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); }
4.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); } Thread 1
5.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); } Thread 2
6.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); } Thread 1
8.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); }
9.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); } private sealed class <ReadDataFromUrl>d_1 : IAsyncStateMachine
10.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); } private string <data>5_3; private byte[] <result>5_2; private WebClient <wc>5_1; public string url;
11.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); } private void MoveNext();
12.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait public void
MoveNext() { uint num = (uint)this.$PC; this.$PC = -1; try { switch (num) { case 0: this.<wc>__0 = new WebClient(); this.$awaiter0 = this.<wc>__0.DownloadDataTaskAsync(this.url).GetAwaiter(); this.$PC = 1; ... return; break; case 1: this.<result>__1 = this.$awaiter0.GetResult(); this.<data>__2 = Encoding.ASCII.GetString(this.<result>__1); this.$this.LoadData(this.<data>__2); break; default: return; } } catch (Exception exception) { ... } this.$PC = -1; this.$builder.SetResult(); }
13.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait public void
MoveNext() { uint num = (uint)this.$PC; this.$PC = -1; try { switch (num) { case 0: this.<wc>__0 = new WebClient(); this.$awaiter0 = this.<wc>__0.DownloadDataTaskAsync(this.url).GetAwaiter(); this.$PC = 1; ... return; break; case 1: this.<result>__1 = this.$awaiter0.GetResult(); this.<data>__2 = Encoding.ASCII.GetString(this.<result>__1); this.$this.LoadData(this.<data>__2); break; default: return; } } catch (Exception exception) { ... } this.$PC = -1; this.$builder.SetResult(); } case 0: this.<wc>__0 = new WebClient(); this.$awaiter0 = this.<wc>__0.DownloadDataTaskAsync(this.url).GetAwaiter(); this.$PC = 1; ... return;
14.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait public void
MoveNext() { uint num = (uint)this.$PC; this.$PC = -1; try { switch (num) { case 0: this.<wc>__0 = new WebClient(); this.$awaiter0 = this.<wc>__0.DownloadDataTaskAsync(this.url).GetAwaiter(); this.$PC = 1; ... return; break; case 1: this.<result>__1 = this.$awaiter0.GetResult(); this.<data>__2 = Encoding.ASCII.GetString(this.<result>__1); this.$this.LoadData(this.<data>__2); break; default: return; } } catch (Exception exception) { ... } this.$PC = -1; this.$builder.SetResult(); } case 1: this.<result>__1 = this.$awaiter0.GetResult(); this.<data>__2 = Encoding.ASCII.GetString(this.<result>__1); this.$this.LoadData(this.<data>__2); break;
15.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait public void
MoveNext() { uint num = (uint)this.$PC; this.$PC = -1; try { switch (num) { case 0: this.<wc>__0 = new WebClient(); this.$awaiter0 = this.<wc>__0.DownloadDataTaskAsync(this.url).GetAwaiter(); this.$PC = 1; ... return; break; case 1: this.<result>__1 = this.$awaiter0.GetResult(); this.<data>__2 = Encoding.ASCII.GetString(this.<result>__1); this.$this.LoadData(this.<data>__2); break; default: return; } } catch (Exception exception) { ... } this.$PC = -1; this.$builder.SetResult(); } try { catch (Exception exception) { . . . }
17.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
18.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
21.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
22.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
23.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
24.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
25.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
26.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
27.
@TheCodeTraveler https://www.codetraveler.io/NDCSydney-2018-AsyncAwait
Editor's Notes
Every time we add the `async` keyword, the compiler creates a new class. Each class increases our app size by appx. 100 bytes
Every time we add the `async` keyword, the compiler creates a new class. Each class increases our app size by appx. 100 bytes
Every time we add the `async` keyword, the compiler creates a new class. Each class increases our app size by appx. 100 bytes
Best way to learn – free videos Paid for instructors Certification, actually valued by employers Great ecosystem of books
Download now