Top Banner
Asynchronous Programming with Xamarin Filip Ekberg
6

Asynchronous Programming with Xamarin - Xamarin Hackday Sydney 2015

Apr 13, 2017

Download

Education

Filip Ekberg
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Asynchronous Programming with Xamarin - Xamarin Hackday Sydney 2015

Asynchronous Programming with XamarinFilip Ekberg

Page 2: Asynchronous Programming with Xamarin - Xamarin Hackday Sydney 2015

I’m Filip Ekberg

Readify

@fekberg

Author. Blogger. Speaker. C# MVP. Geek.

Page 3: Asynchronous Programming with Xamarin - Xamarin Hackday Sydney 2015

Demo

Async and Await in Xamarin

@fekberg

Page 4: Asynchronous Programming with Xamarin - Xamarin Hackday Sydney 2015

Considerations• Don’t mark void methods as

asynchronous methods• Tasks swallow Exceptions!• Wait() this is an easy path to

deadlocking• Follow the naming convention

MyMethodAsync• Don’t lie by wrapping

synchronous/blocking code in async methods

• The continuation is on the calling thread!

@fekberg

Page 5: Asynchronous Programming with Xamarin - Xamarin Hackday Sydney 2015

Want to deep-dive?

@fekberg

http://bit.ly/async-await-dotnet

Page 6: Asynchronous Programming with Xamarin - Xamarin Hackday Sydney 2015

Thank you,I’m Filip Ekberg

Readify

@fekbergAuthor. Blogger. Speaker. C# MVP. Geek.