https://kotlinlang.org logo
#coroutines
Title
# coroutines
r

rogeralsing

07/24/2017, 2:30 PM
Should the
kotlinx.coroutines.experimental.TimeoutException
really be private? I can catch CancellationException which is the base, but still?
e

elizarov

07/24/2017, 3:37 PM
@rogeralsing What is your use-case to catch it?
r

rogeralsing

07/24/2017, 3:37 PM
request / response communication with actors
CancellationException works, so its not a real issue
I was mostly surprised that I could not write tests that expected the actually thrown type
e

elizarov

07/24/2017, 3:45 PM
That is a valid use-case, though. A reason to think about making it public. Recorded this idea: https://github.com/Kotlin/kotlinx.coroutines/issues/89
4 Views