mirror of
https://github.com/corda/corda.git
synced 2025-01-18 10:46:38 +00:00
Unrwap ExecutionException, use Duration. (#900)
This commit is contained in:
parent
a69178ca73
commit
27a8f6fc47
@ -400,7 +400,7 @@ class ShutdownManager(private val executorService: ExecutorService) {
|
|||||||
registeredShutdowns
|
registeredShutdowns
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val shutdowns = shutdownFutures.map { ErrorOr.catch { it.get(1, SECONDS) } }
|
val shutdowns = shutdownFutures.map { ErrorOr.catch { it.getOrThrow(1.seconds) } }
|
||||||
shutdowns.reversed().forEach { errorOrShutdown ->
|
shutdowns.reversed().forEach { errorOrShutdown ->
|
||||||
errorOrShutdown.match(
|
errorOrShutdown.match(
|
||||||
onValue = { shutdown ->
|
onValue = { shutdown ->
|
||||||
|
Loading…
Reference in New Issue
Block a user