Suspend functions - Kotlin Vocabulary

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025

Комментарии • 32

  • @goobar
    @goobar 4 года назад +21

    The comparison to the callback-based approach was nicely done 👍 Highlighting how the Continuation interface is used by the compiler was really useful!

  • @markking2390
    @markking2390 4 года назад +4

    This is very timely. I am currently learning about Coroutines.

  • @lukaslechner
    @lukaslechner 4 года назад +1

    High quality. Well explained. It clicked several times in my head. Thanks!

  • @xtreme5044
    @xtreme5044 6 месяцев назад

    This is the best explanation

  • @Skater901
    @Skater901 4 года назад +15

    I think my brain hurts now... it's gonna take me a while to parse this.

  • @mubaraknative
    @mubaraknative 11 месяцев назад

    Really good explanation

  • @GakisStylianos
    @GakisStylianos 4 года назад +37

    Me before this video: 80 IQ
    Me after this video: 120 IQ

    • @guzzledust
      @guzzledust 4 года назад +17

      Me before this video: I know something about Kotlin
      Me after this video: I don't know Kotlin at all

    • @GakisStylianos
      @GakisStylianos 4 года назад +2

      @@guzzledust It's funny because it's true 🤣

    • @matthieuregnauld9648
      @matthieuregnauld9648 4 года назад +1

      @@guzzledust My thought, exactly!

  • @erictsang0
    @erictsang0 4 года назад +2

    intro and outro music is too loud compared to the voices haha but other than that, i love the video!!! so much good information

  • @AvocadoGCC
    @AvocadoGCC 3 года назад +5

    1:20, why doesn't your example code use the userId and password parameters at all? that is a little confusing when comparing to the suspend version.

  • @conscarcdr
    @conscarcdr 4 года назад

    This is sinfully refreshing for functional programming purists.

  • @robchr
    @robchr 4 года назад +1

    Haskell's do notation is more flexible since it can handle any type of monad. Since coroutines only represent the Either monad, it should keep average developers from getting confused.

  • @djaos-8326
    @djaos-8326 2 года назад +1

    Thanks

    • @AndroidDevelopers
      @AndroidDevelopers  2 года назад +1

      Thanks, Dree! If you're interested in learning additional resources, check out the Kotlin Vocabulary playlist: goo.gle/2wHr94N
      Happy learning 😎

  • @hessamemami6936
    @hessamemami6936 4 года назад

    Thank you guys for this awesome info about suspended funs

  • @alimix05
    @alimix05 4 года назад

    What I don't understand is how the continuation is passed as a parameter in the methods:
    userRemoteDataSource.loginUser() & userLocalDataSource.logUserIn().

  •  4 года назад +2

    ok, I learned that the compiler writes horrible code for me that I would never write this way.

  • @luciancriveanu6623
    @luciancriveanu6623 4 года назад +12

    Its sad because when you want to use suspend you have to suspend fun ;)!!

  • @MadonaWambua
    @MadonaWambua 4 года назад

    Nice one.

  • @dennisgonzales9521
    @dennisgonzales9521 4 года назад

    Awesome!

  • @abdulazizabduqodirov4348
    @abdulazizabduqodirov4348 3 года назад +1

    I've suspended understanding it without blocking

  • @StaticVapour590
    @StaticVapour590 4 года назад +1

    Yes

  • @syednoorullahshah9194
    @syednoorullahshah9194 4 года назад +1

    this is some heavy stuff

  • @brianturner5003
    @brianturner5003 4 года назад

    Hello everyone 😊

  • @Max86421
    @Max86421 4 года назад +1

    How smart Android 11 going to be in my smartphone? 😏😷

  • @jaimeconley8684
    @jaimeconley8684 4 года назад

    Lol wow

  • @MrClaudioAgostini
    @MrClaudioAgostini 4 года назад +1

    Ok but all these implementation details are not very useful for a developer

    • @anirudhganesh7714
      @anirudhganesh7714 4 года назад +2

      If you get to know the inbuilt classes and methods, you can rise above the crowd :P

    • @nilanjanmukhopadhyay8369
      @nilanjanmukhopadhyay8369 3 года назад

      I think it is. I am learning asynchronous programming for the first time and until I fully understand how a programming construct maps to the memory and the cpu of the machine I won't be able to use this confidently.

    • @aemogie
      @aemogie 3 года назад

      it is for me, so ig you are wrong :/
      might be useless for **some** developers, but you didn't use the word "some" (that would also make your comment redundant)