groostav
06/02/2017, 2:44 AMwithTimeout
timed-out to look at the exception message?
eg:
job = launch {
withTimeout(1, SECONDS){
doSomething();
}
}
fun doSomething() = delay(2, SECONDS)
job.cancel()
how could I differentiate them aside from looking at the exception message?