EffectTalk

Fiber.join to wait for results

A `Fiber` represents a running Effect. Use `yield* fiber.join` to wait for it to complete and get its result.

The main fiber can do other work while the forked fiber runs.

  • Fork both tasks to run in parallel
  • Use `Effect.all([fiberA.join, fiberB.join])` to wait for both
  • Results come back in the same order
Loading code editor...