Network Timeouts with Kotlin Coroutines
Автор: CodingWithMitch
Загружено: 2019-08-02
Просмотров: 28026
High quality programming courses: https://codingwithmitch.com/courses
In this video I show you how to handle network timeouts using Kotlin coroutines.
In the past, network timeouts have been notoriously difficult to handle on android. AsyncTask, Executors, Threads, all these components made it very difficult to handle errors when making network requests.
RxJava and LiveData made is slightly simpler, and Kotlin coroutines takes it a step further. With Kotlin coroutines there's many different ways to handle timeouts and cancellations. This is a simple example showing you one of those ways using the "withTimeoutOrNull" coroutine launcher method.
Instagram: / codingwithmitch
code: https://github.com/mitchtabian/Kotlin...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: