Skip to content

Commit 4d5e2e0

Browse files
committed
Make CoroutineInfo non-data class
1 parent 14fa5a7 commit 4d5e2e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

kotlinx-coroutines-debug/src/CoroutineInfo.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import kotlin.coroutines.jvm.internal.*
1414
* Class describing coroutine info such as its context, state and stacktrace.
1515
*/
1616
@ExperimentalCoroutinesApi
17-
public data class CoroutineInfo internal constructor(
17+
public class CoroutineInfo internal constructor(
1818
val context: CoroutineContext,
1919
private val creationStackBottom: CoroutineStackFrame,
2020
@JvmField internal val sequenceNumber: Long
@@ -90,6 +90,10 @@ public data class CoroutineInfo internal constructor(
9090
lastObservedThread = null
9191
}
9292
}
93+
94+
override fun toString(): String {
95+
return "CoroutineInfo(state=$state,context=$context)"
96+
}
9397
}
9498

9599
/**

0 commit comments

Comments
 (0)