The ABC of Coroutines - Kotlin Vocabulary

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • Coroutines in Kotlin simplify asynchronous operations on Android. In this video, we explain the most common classes and functions used in coroutines. CoroutineContext, Job, Dispatchers, and much more!
    Coroutines 101 talk → goo.gle/3khfnSw
    Cancellation and exceptions in coroutines talk → goo.gle/31n9AmZ
    Suspend modifier video → goo.gle/3k94rGF
    Watch more Kotlin Vocabulary→ goo.gle/2wHr94N
    Subscribe to Android Developers → goo.gle/Androi...
    #Kotlin #KotlinVocabulary #AndroidDevelopers

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

  • @mitch8204
    @mitch8204 3 года назад +9

    Great! I have understood quite a lot of things I wasn't getting right before.

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

    been struggling with corounites for a long time , had no clear idea of its concepts until i watched this video , great job !

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

      We're so happy to hear the tutorial was helpful!
      Be sure to subscribe for the latest updates, tips and tutorials:
      goo.gle/AndroidDevs
      😎

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

    I've been using RxJava 2 to write reactive architecture apps for 4 years now and was reluctant to migrate to coroutines because Flow was still in development. With Flow maturing I've begun the transition and find the syntax of suspend functions much easier to parse than Single chains. I assumed that kotlin coroutines would be similar to Generators/JS or Goroutines/Golang but now I see it's much more than that with how cancellation is propagated. Android development has never been better!

  • @MasterYogurta
    @MasterYogurta 3 года назад +9

    0:53 "In Europe, you should create a CoroutineScope"
    I guess sdk usage is now region restricted (;

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

      He said "in your app", I don't know the subtitle is "Europe"

    • @cnankh9087
      @cnankh9087 2 года назад

      this restrictions are usually made by communists ;))
      he says "in your app"

  • @517Amit
    @517Amit 2 года назад +1

    Great!

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

      Thanks, Amit!
      Want to learn even more Kotlin Vocabulary? Check out this playlist: goo.gle/2wHr94N 😁

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

    not to forget viewLifecycleOwner.lifecycleScope for fragments

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

      But this was a great explanation, bravo!

    • @rafatansari112
      @rafatansari112 2 года назад

      Your content on Android development is amazing!

    • @codinginflow
      @codinginflow 2 года назад

      @@rafatansari112 Thank you very much 🙏

  • @AbdielDMolina
    @AbdielDMolina 3 года назад +2

    nice explanation!!

  • @tinykingcontractor1396
    @tinykingcontractor1396 Год назад

    The content was amazing. Thanks.

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

    Things are more clear now. Thanks a lot for this D J S .😄

  • @technics6215
    @technics6215 Год назад

    Thank you. Very good talk. Videos like this deserve better sound. On my ThinkPad it was hard to understand everything on speakers. There is some echo in the video, and this voice must be in some hole of bandwidth of my Thinkpad P speakers (they are pretty bad for a laptop that cost more than well stuffed Macbook).

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

    Great video! Deserves for more views/likes!
    Keep up the good work, thanks!

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

    Clear, straightforward and informative talk👍

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

    Coroutines are better than traditional AsyncTask. And it's scope makes it more powerful and usable.

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

      Are there people who actually still use AsyncTasks in real projects?

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

      @@bottomofeverybottle Yes. there are many people who still believes in AsyncTask. It's officially deprecated. but still they're using. 😁

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

    Good explanation, as always!

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

    Great timing for my project. Good teacher 👍

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

    At 1:26 the subtitles say "async isn't meant to return a result", while doc says this returns a Deferred. Guess the subtitling misunderstood?

    • @hariskumar9010
      @hariskumar9010 Год назад

      I'm here for the same. Actually a Deffered can hold an result which is basically the async does and launch work as 'fire-and-forget'. I think he misplaced the words :)

  • @pankajsharma-uk6io
    @pankajsharma-uk6io 3 года назад +1

    Great👍

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

    Great video

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

    Great video but I still don't understand the difference between CoroutineScope and coroutineScope. SupervisorScope and supervisorScope? Like one is in capital letter and the other one is in small? Or when should we use it?

  • @manu-singh
    @manu-singh 3 года назад

    Cool!

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

    Love it ❤

  • @alejandrogallego5419
    @alejandrogallego5419 2 года назад

    Muchas Gracias. ¿Por qué no ponen esos videos en español?.

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

      solían tener subtítulos en español, que yo recuerde. ahora ni siquiera tienen los ingleses.

  • @juanf.mateosredondo8830
    @juanf.mateosredondo8830 Год назад

    Gracias, Manuel. Un placer aprender contigo (como siempre). Me ha encantado que en los subtítulos han traducido por Europe :)

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

    Can I give multiple thumbs up for this video please?

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

    Well done! LiveData and coroutines rules. RxJava go home :p

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

      Really ? In rxjava we have lot of operators , which is missing here