Skip to content

Commit

Permalink
ContextScope.toString for better debuggability
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad committed Dec 10, 2019
1 parent a930b0c commit c02648b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kotlinx-coroutines-core/common/src/internal/Scopes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ internal open class ScopeCoroutine<in T>(

internal class ContextScope(context: CoroutineContext) : CoroutineScope {
override val coroutineContext: CoroutineContext = context
// CoroutineScope is used intentionally for user-friendly representation
override fun toString(): String = "CoroutineScope(coroutineContext = $coroutineContext)"
}

0 comments on commit c02648b

Please sign in to comment.