Skip to content

Instantly share code, notes, and snippets.

@Anamorphosee
Created February 11, 2023 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Anamorphosee/80618dd989ec897f968521f907934594 to your computer and use it in GitHub Desktop.
Save Anamorphosee/80618dd989ec897f968521f907934594 to your computer and use it in GitHub Desktop.
package shortened_stack_trace
import kotlinx.coroutines.delay
suspend fun fun3() {
delay(100)
throw RuntimeException()
}
suspend fun fun2() {
fun3()
println("fun2 ended")
}
suspend fun fun1() {
fun2()
println("fun1 ended")
}
suspend fun main() {
fun1()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment