Multiple Parallel API calls with Retrofit and Kotlin Coroutines

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024
  • In this video, we shall be learning how we can do multiple API calls in Android with retrofit and Kotlin Coroutines.
    My GitHub: github.com/Kas...
    My LinkedIn: / kashif-mehmood-km
    My medium: / kashif-mehmood-km
    Kotlin Coroutines
    Retrofit
    Multiple API calls

ความคิดเห็น • 13

  • @codewithkashif4125
    @codewithkashif4125  2 ปีที่แล้ว +4

    I made a mistake in this video you should await() your async block after you have written all of your async blocks
    check the code here : gist.github.com/Kashif-E/ff1dcec09f785318fe74eb6856cf3a2e

    • @mohamedkissicamara7518
      @mohamedkissicamara7518 2 ปีที่แล้ว

      Thanks and great video btw keep on sharing 💜 from Guinea West Africa

  • @Valder1989
    @Valder1989 2 ปีที่แล้ว +4

    I don't think it counts as parallel if you call await straight away

  • @TheGeekTalks
    @TheGeekTalks 2 ปีที่แล้ว +1

    Thanks for publishing such an amazing video . Keep the good work up .

  • @neingtyyyy
    @neingtyyyy 2 ปีที่แล้ว

    This is amazing..

  • @kundankumar8994
    @kundankumar8994 2 ปีที่แล้ว

    Thank you♥️

  • @kshitizagnihotri8777
    @kshitizagnihotri8777 ปีที่แล้ว

    Please share how we can combine result and fetch it through Observer

  • @skbhati199
    @skbhati199 ปีที่แล้ว

    Hello @Code With Kashif, I want request multiple request any request response get 401 after call refresh token, than call access token update than 401 request and others

  • @AhmadShahwaiz
    @AhmadShahwaiz 2 ปีที่แล้ว

    isSuccessFul is not longer accessible

  • @bilalzurmati
    @bilalzurmati ปีที่แล้ว

    This is not parallel api calling as long as you are using await, instead its a synchronous approach in asynchronous manner.