Asynchronous Programming with Xamarin - Xamarin Hackday Sydney 2015

Post on 13-Apr-2017

320 Views

Category:

Education

5 Downloads

Preview:

Click to see full reader

Transcript

Asynchronous Programming with XamarinFilip Ekberg

I’m Filip Ekberg

Readify

@fekberg

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

Demo

Async and Await in Xamarin

@fekberg

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

Want to deep-dive?

@fekberg

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

Thank you,I’m Filip Ekberg

Readify

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

top related