Suche senden
Hochladen
Correcting Common Mistakes in Async/Await
•
Als PPTX, PDF herunterladen
•
0 gefällt mir
•
161 views
Brandon Minnick, MBA
Folgen
Correcting Common Mistakes in Async/Await
Weniger lesen
Mehr lesen
Technologie
Melden
Melden
1 von 29
Jetzt herunterladen
Empfohlen
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
Empfohlen
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
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
Weitere ähnliche Inhalte
Mehr von 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
Mehr von 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
Kürzlich hochgeladen
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Rustici Software
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Nanddeep Nachan
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Sandro Moreira
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
apidays
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
Christopher Logan Kennedy
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Deepika Singh
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Angeliki Cooney
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
apidays
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
UiPathCommunity
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Bhuvaneswari Subramani
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
rafiqahmad00786416
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
danishmna97
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
apidays
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
Remote DBA Services
Kürzlich hochgeladen
(20)
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Elevate Developer Efficiency & build GenAI Application with Amazon Q
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
Correcting Common Mistakes in Async/Await
1.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
3.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
4.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); }
5.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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
6.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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
7.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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
9.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ async Task
ReadDataFromUrl(string url) { WebClient wc = new WebClient(); byte[] result = await wc.DownloadDataTaskAsync(url); string data = Encoding.ASCII.GetString(result); LoadData(data); }
10.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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
11.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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;
12.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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();
13.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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(); }
14.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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;
15.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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;
16.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/ 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) { . . . }
18.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
19.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
22.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
23.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
24.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
25.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
26.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
27.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
28.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
29.
@TheCodeTraveler https://www.codetraveler.io/Update-2018/
Hinweis der Redaktion
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
Jetzt herunterladen