workflow-kotlin
workflow-kotlin copied to clipboard
[kotlin] Stacktraces from WorkflowTester timeouts are useless
trafficstars
Timeout exceptions thrown from the coroutine library's withTimeout function are useless. We should catch and re-throw with a real exception that has a real stacktrace.
The comment on this issue makes it sound like this should be fixed already, but apparently it is not: https://github.com/Kotlin/kotlinx.coroutines/issues/1625#issuecomment-544917309
Since it affects which exceptions we expose, I would consider this as an API change even though it's technically not.
Not API change, not 1.0 blocker.