CLOVIS
06/25/2024, 8:58 AMparZip(
{ … },
{ … },
)
I'd be interested in having
parAny(
{ … → true },
{ … → false },
) // Boolean
parNone(…)
parAll(…)
that are correctly configured to cancel all other checks once boolean logic determines the result.
What do you think?simon.vergauwen
06/25/2024, 9:50 AMparZip with a DSL as well 🙃
I have a prototype on a branch, but have been lacking time since KotlinConfsimon.vergauwen
06/25/2024, 9:51 AMsimon.vergauwen
06/25/2024, 9:51 AMCLOVIS
06/25/2024, 10:07 AMawaitAll is untyped, no?
But yeah, the main issue with this proposal is that it adds 3 new 22-arity methods 😕simon.vergauwen
06/25/2024, 10:07 AMawaitAll { } is to parZip what accumulate { } is to ziprOrAccumulate if that's what you meant with untypedsimon.vergauwen
06/25/2024, 10:08 AMawaitAll any call to await is equivalent to call awaitAll on the created Jobs within the scope. So it serves the same purpose as parZip.CLOVIS
06/25/2024, 10:16 AMBoolean , this may be imported as
List<Deferred<Boolean>>.any(): Boolean
but that seems easy to misunderstandAlejandro Serrano.Mena
06/25/2024, 12:01 PMpar blockCLOVIS
06/25/2024, 12:10 PMpar DSL?Alejandro Serrano.Mena
06/25/2024, 12:11 PMparZip 😅