Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Asynchrony in mobile programming

Asynchrony in mobile programming

ilkayilknur

April 29, 2013
Tweet

More Decks by ilkayilknur

Other Decks in Programming

Transcript

  1. İlkay İlknur
    Software Engineer @ XOMNI
    www.ilkayilknur.com
    Asenkron Programlama Mobil
    Dünyasında

    View full-size slide

  2. • Asenkron Programlama
    • Windows Phone’da Asenkron Programlama

    View full-size slide

  3. Senkron vs. Asenkron
    • Senkron  Yanıt gelene kadar bekle
    string DownloadString(...);
    • Asenkron  Kontrolü hemen metodu çağıran tarafa dön
    Yanıt gelince gerekli işlemleri gerçekleştir(callback)
    void DownloadStringAsync(..., Action callback);
    • Asenkron geliştirme faydaları
    Cevap verebilir kullanıcı arayüzleri
    Kullanıcı Deneyimi

    View full-size slide

  4. var data = DownloadData(...);
    ProcessData(data);
    DownloadDataAsync(... , data => {
    ProcessData(data);
    });

    View full-size slide

  5. var data = DownloadData(...);
    ProcessData(data);
    DownloadDataAsync(... , data => {
    ProcessData(data);
    });

    View full-size slide

  6. • Asynchronous Programming Model (APM)
    • Event-based Asynchronous Pattern
    • Task-based Asynchronous Pattern

    View full-size slide

  7. www.ilkayilknur.com

    View full-size slide