mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
[fleet] FL-32265 make completeWithResult multiplatform
(cherry picked from commit 199e207004e3eeaa89e3f73c64ab609a230ab3cf) FLEET-CR-5747 GitOrigin-RevId: 48632c4ef3bc0e8c55b2560b7e91f188b26b1833
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e381284d13
commit
617ac5e173
@@ -20,7 +20,6 @@ private fun CompletableSpan.completeWithResult(result: Result<*>) {
|
||||
}.onFailure { ex ->
|
||||
when (ex) {
|
||||
is CancellationException -> complete(SpanStatus.Cancelled, null)
|
||||
is InterruptedException -> complete(SpanStatus.Cancelled, null)
|
||||
else -> complete(SpanStatus.Failed(ex), null)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ fun CompletableSpan.completeWithResult(result: Result<*>) {
|
||||
}.onFailure { ex ->
|
||||
when (ex) {
|
||||
is CancellationException -> complete(SpanStatus.Cancelled, null)
|
||||
is InterruptedException -> complete(SpanStatus.Cancelled, null)
|
||||
else -> complete(SpanStatus.Failed(ex), null)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user