Implement debug-friendly Continuation.toString()

#KT-18986 Fixed
This commit is contained in:
Ilmir Usmanov
2018-08-22 20:41:08 +03:00
committed by Ilya Gorbunov
parent 4929f457ed
commit e8597d706d
2 changed files with 2 additions and 3 deletions
@@ -64,8 +64,7 @@ internal abstract class BaseContinuationImpl(
}
public override fun toString(): String {
// todo: how continuation shall be rendered?
return "Continuation @ ${this::class.java.name}"
return "Continuation at ${getStackTraceElement() ?: this::class.java.name}"
}
}