From f4c5a365ab03d3b72940938b2ca31983539739ab Mon Sep 17 00:00:00 2001 From: Daniil Ovchinnikov Date: Tue, 23 Jul 2024 14:14:32 +0200 Subject: [PATCH] IJPL-158159 bring back `namedChildScope` GitOrigin-RevId: fcbf014a48b20c72ca76eac9fb292dde0871f590 --- platform/util/coroutines/src/coroutineScope.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/util/coroutines/src/coroutineScope.kt b/platform/util/coroutines/src/coroutineScope.kt index 9010ba3b2d36..55d6d40c3ce9 100644 --- a/platform/util/coroutines/src/coroutineScope.kt +++ b/platform/util/coroutines/src/coroutineScope.kt @@ -21,6 +21,14 @@ fun CoroutineScope.childScope(context: CoroutineContext = EmptyCoroutineContext, return ChildScope(coroutineContext + context, supervisor) } +@Internal +@Deprecated("Renamed to `childScope`", replaceWith = ReplaceWith("childScope(name, context, supervisor)")) +fun CoroutineScope.namedChildScope( + name: String, + context: CoroutineContext = EmptyCoroutineContext, + supervisor: Boolean = true, +): CoroutineScope = childScope(name, context, supervisor) + /** * @return a scope with a [Job] which parent is the [Job] of [this] scope. *