IJPL-158159 bring back namedChildScope

GitOrigin-RevId: fcbf014a48b20c72ca76eac9fb292dde0871f590
This commit is contained in:
Daniil Ovchinnikov
2024-07-23 18:18:27 +00:00
committed by intellij-monorepo-bot
parent d619e852b0
commit f4c5a365ab
@@ -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.
*