StanGomes

Results 1 comments of StanGomes

My solution was to wrap the coroutine in refreshVideos() function with a try/catch block. ```kotlin suspend fun refreshVideos() { withContext(Dispatchers.IO) { try{ val playlist = Network.devbytes.getPlaylist().await() database.videoDao.insertAll(*playlist.asDatabaseModel()) } catch (e:...