Laxystem
03/13/2024, 10:40 AMawaitAll
- but when encountering a CancellationException
, it just silently ignores it instead of cancelling all the other coroutines, similarly to SupervisorJob
.Laxystem
03/13/2024, 11:25 AMdependencies.map { (dependency, dependencyScope) ->
dependencyScope.async {
try {
dependency.beforeDependentLoad(
instance = this@InstanceImpl,
extension,
dynamicallyTriggered = true
)
} catch (_: CancellationException) { }
}
}.awaitAll()
Joffrey
03/13/2024, 3:36 PMLaxystem
03/13/2024, 3:51 PMLaxystem
03/13/2024, 3:52 PM