Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR proposes a new module for Arrow Fx Coroutines, which covers the existing behavior in Arrow Fx but in a generalised way using DSLs.
parMapN
is covered byAwaitAllScope
Resource
already was a DSL,Scoped
offers a similar but more lightweight DSL (noExitCase
), and simplified SAM.raceN
will be covered byRacingScope
(Upgrading from 1.1.3 til 1.1.4 (and higher) breaks getOrElse: List<String> turns into List<Serializable> #3342)parZipOrAccumulate
should be covered by a combination ofAwaitAllScope
& `Accumulating)All the above non-DSL variants, can be implemented by their DSL variations. Simplifying the internals of Arrow Fx Coroutines. The idea behind this is future proofing, since my ambition for 3.0 is to split
Raise
and the typed error handling DSL fromArrow Core
such that users can rely on only the DSL after 3.0. That should be do-able with only a single binary breakage in Arrow Core, so 3.0 should be source compatible, and 99% binary compatible once Context Parameters are released.AwaitAllScope
parZipOrAccumulate
DSLRacingScope
Investigate if we need, or want,
<E>
variants when insideRaise<E>
.