vineethraj49
09/17/2019, 5:16 AMwithTimeoutOrNull
not work with readBytes
?
example, this always works (and I’m pretty sure 1ms val bytes = withContext(<http://Dispatchers.IO|Dispatchers.IO>) {
withTimeoutOrNull(1) {
URL(urlPath).readBytes()
}
}
Dominaezzz
09/17/2019, 11:12 AM