is the only way to differentiate between when your...
# coroutines
g
is the only way to differentiate between when your job was cancelled and when
withTimeout
timed-out to look at the exception message? eg:
Copy code
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?