mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-158159 bring back namedChildScope
GitOrigin-RevId: fcbf014a48b20c72ca76eac9fb292dde0871f590
This commit is contained in:
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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user