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
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
Thanks and great video btw keep on sharing 💜 from Guinea West Africa
I don't think it counts as parallel if you call await straight away
Thanks for publishing such an amazing video . Keep the good work up .
Thank you, I will
This is amazing..
Thank you♥️
Please share how we can combine result and fetch it through Observer
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
isSuccessFul is not longer accessible
This is not parallel api calling as long as you are using await, instead its a synchronous approach in asynchronous manner.
Please check the pin comment