Commit 9cbf7e3f authored by Daniil Ovchinnikov's avatar Daniil Ovchinnikov Committed by intellij-monorepo-bot
Browse files

IJPL-274 document `ignoreProgressReportingIn`

(cherry picked from commit 498432ff0220e32de96a2642f8e806dbdb3cef71)

IJ-CR-127983

GitOrigin-RevId: 5d5b704445d18cba13294b7f86e25891d75d4038
parent a9a22e45
Showing with 3 additions and 0 deletions
+3 -0
......@@ -135,6 +135,9 @@ suspend fun <T> withProgressText(text: ProgressText?, action: ScopedLambda<T>):
return currentProgressStep().withText(text, action)
}
/**
* Suppresses progress reporting inside [action] to avoid the [action] taking the ownership of the [current step][currentProgressStep].
*/
suspend fun <T> ignoreProgressReportingIn(action: suspend CoroutineScope.() -> T): T {
// It's not possible to throw away a context element
// => we replace the element with a null-object instead
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment