EffectTalk

Effect.all for parallel execution

`Effect.all` runs multiple Effects in parallel. Pass an array or tuple; it returns when all succeed (or fails on first failure).

In the anti-pattern, we run sequentially. In the Effect way, we run in parallel.

  • Use `Effect.all([effect1, effect2])` to run in parallel
  • Returns a tuple of results in the same order
  • Fails fast if any Effect fails
Loading code editor...