Skip to content

Commit

Permalink
Remove debugging println
Browse files Browse the repository at this point in the history
  • Loading branch information
kyay10 committed May 18, 2024
1 parent a1303b6 commit 4bf201e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,7 @@ internal value class ResourceScopeImpl(

suspend fun cancelAll(exitCase: ExitCase): Unit = withContext(NonCancellable) {
finalizers.value.fold(exitCase.throwableOrNull) { acc, finalizer ->
val e = runCatching { finalizer(exitCase) }.exceptionOrNull()
println("Adding $e with $acc")
acc.add(e)
acc.add(runCatching { finalizer(exitCase) }.exceptionOrNull())
}?.let { throw it }
}
}
Expand Down

0 comments on commit 4bf201e

Please sign in to comment.