$30 off During Our Annual Pro Sale. View Details »

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.

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

    View Slide

  2. Kotlin Asynchronous Flow, A beginner guide for RxJava
    people

    View Slide

  3. Agenda
    1. Why I mention RxJava here? (Target audiences)
    2. Revisit coroutine concepts.
    3. Idea
    4. Key takeaways

    View Slide

  4. Why I mention RxJava here?
    - The perfect duos.
    Loader pattern?
    IntentService? Create threads?
    Java Future?

    View Slide

  5. Why I mention RxJava here?
    2. The sweet abusive usage.

    View Slide

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

    View Slide

  7. Revisit coroutine concepts
    Suspending
    functions
    CoroutineBuilders
    (async, launch,
    runBlocking)
    CoroutineScopes
    (Activity, Application,
    viewModel, etc)
    CoroutineDispatchers
    (Main, IO, Defaut,
    Unconfined)
    Coroutine

    View Slide

  8. Revisit coroutine concepts (cont)
    Photo courtesy from raywenderlich
    Timeline MainThread
    function1() function2() function3()
    Blocking model

    View Slide

  9. Idea
    RxJava2 and Kotlin Flow are “Cold stream”

    View Slide

  10. Idea (cont)

    View Slide

  11. Key takeaways

    View Slide

  12. Thank you

    View Slide