The default interpretation of Eff
values is “monadic”
meaning that effectful values are being evaluated in order. This becomes
clear when traversing a list of values with the
FutureEffect
:`> List(1000, 500, 50)`
We can however run all those computations concurrently using the
applicative execution for Eff
:`> List(1000,
500, 50)`
This uses now traverseA
(instead of
traverse
) to do an applicative traversal and execute
futures concurrently and the fastest actions finish first.