Hi, dependency question: so to just work with the ...
# arrow
j
Hi, dependency question: so to just work with the new effect-system (basics like either-computations using suspend functions, not the scheduling and concurrent API), I need to depend on
arrow-fx
and not necessarily on
arrow-fx-coroutines
? (0.12-SNAPSHOT)
🤔 1
s
Hey @Jörg Winter, If you just want access to
either { }
then having a dependency on
Arrow Core
(
arrow-core
) is sufficient. Arrow Core is
inline
in wherever possible to allow
suspension
to be used inside it's lambdas. The
either { }
DSL is also
suspend
, and thus allows the use of
suspend
functions inside. For a non-suspend version of
either { }
you should use
either.eager { }
.
If you want access to
parMapN
,
parTraverse
, and other concurrency APIs you want a dependency on
Arrow Fx Coroutines
(
arrow-fx-coroutines
).
Arrow Fx
(
arrow-fx
) is a module that's being deprecated in 0.12.0 and will be removed in 0.13.0.
Hope that helps 🙂
💯 1
j
That helps, thanks !