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

GDG Vietnam Webinar #1 - Kotlin Asynchronous Flow, A beginner guide for RxJava people

GDG Vietnam Webinar #1 - Kotlin Asynchronous Flow, A beginner guide for RxJava people

Starting with Kotlin Flow Api from the background of RxJava2 context, this talk will help you have a simple comparison of concepts and the ground technical pillars that share between the 2 options.

A88d9a18fa8d8d5b2b29c5cc3a387931?s=128

Toan Tran

March 07, 2020
Tweet

More Decks by Toan Tran

Other Decks in Programming

Transcript

  1. About speaker Hello! I’m Toan Vice President, Mobile @Lazada (Looking

    for Android folks to join me!) https://medium.com/@toantran toan_mobi toantran-ea
  2. Kotlin Asynchronous Flow, A beginner guide for RxJava people

  3. Agenda 1. Why I mention RxJava here? (Target audiences) 2.

    Revisit coroutine concepts. 3. Idea 4. Key takeaways
  4. Why I mention RxJava here? - The perfect duos. Loader

    pattern? IntentService? Create threads? Java Future?
  5. Why I mention RxJava here? 2. The sweet abusive usage.

  6. Why I mention RxJava here? 3. The demand for it!

  7. Revisit coroutine concepts Suspending functions CoroutineBuilders (async, launch, runBlocking) CoroutineScopes

    (Activity, Application, viewModel, etc) CoroutineDispatchers (Main, IO, Defaut, Unconfined) Coroutine
  8. Revisit coroutine concepts (cont) Photo courtesy from raywenderlich Timeline MainThread

    function1() function2() function3() Blocking model
  9. Idea RxJava2 and Kotlin Flow are “Cold stream”

  10. Idea (cont)

  11. Key takeaways

  12. Thank you