Enviar búsqueda
Cargar
Correcting common mistakes, async await
•
Descargar como PPTX, PDF
•
0 recomendaciones
•
718 vistas
Brandon Minnick, MBA
Seguir
Correcting common mistakes, async await
Leer menos
Leer más
Tecnología
Denunciar
Denunciar
1 de 27
Descargar ahora
Recomendados
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
Recomendados
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
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Más contenido relacionado
Más de 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
Más de 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
Último
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Pixlogix Infotech
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Patryk Bandurski
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions
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
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
HostedbyConfluent
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
Último
(20)
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.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
Notas del editor
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
Descargar ahora