Android Suspenders (Android Dev Summit '18)

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 15

  • @vuluongtrieu2609
    @vuluongtrieu2609 6 років тому +31

    7:15 Suspend functions
    8:55 async
    9:18 launch
    10:52 Jobs
    11:50 Scopes
    16:10 Create coroutine scopes for lifecycleOservable objects
    18:25 Cancellation
    20:02 Exception
    22:36 Dispatchers

  • @gejiaheng
    @gejiaheng 6 років тому +21

    Aside from the awesome talk, I really want to know how they created the slides.

  • @ErSubhradeb
    @ErSubhradeb 5 років тому +1

    I like kotlin corutine very much, but I don't understand how to use progress update like Asynctask, I have asked every where but not getting proper response. So, please inform me, if kotlin corutine support determinant progress bar or not. Thanks.

  • @andy_lamax
    @andy_lamax 5 років тому

    I might be a noob, but I can tell the code at 33:26 z going to be runtime problematic.
    If the function observeLocation will be called more than once, we are going to have multiple callbacks, each with its own job reference, which kinda defeats the purpose of it being there in the first place (Its canceled if there is another running job).
    But again, I am so new to coroutines

  • @cularu1
    @cularu1 5 років тому +2

    Why do we need a suspend retrofit function? Retrofit already runs in a background by default.

  • @utkarshdevgan6199
    @utkarshdevgan6199 5 років тому

    why didn't he mention context for network call like dispatcher.io? while launching...

  • @debshepard9854
    @debshepard9854 Рік тому

    To bad u couldn't put all the directions in one action by the push of what ever your issue is.

  • @Teguder123
    @Teguder123 6 років тому +1

    It was "RTFM" instead of "RTM"

  • @about_midnight
    @about_midnight 5 років тому +1

    rxjava does all this and much more, it has such a comfortable operator dictionary. Why doesn't google promote rxjava still? Coroutines are native yet inferior to rxjava

    • @sabinbajracharya3815
      @sabinbajracharya3815 5 років тому +3

      1) It lets you write asynchronous code in a synchronous way unlike rxjava where you use callbacks.
      2) Thread are expensive. Coroutines (Generators) are also called light weight thread that can perform multiple task (multitask by pausing and resuming functions at set points) typically (but not necessarily) within a single thread (timesliced).

    • @asdf32342
      @asdf32342 5 років тому +1

      I believe that Flow type is a game changer, using it RxJava isn't a superior anymore. But I'm also sorry to see RxJava is leaving the scene, but I'm happy the pattern remains.