MCPcopy Create free account
hub / github.com/Effect-TS/effect / fiberJoin

Function fiberJoin

packages/effect/src/internal/effect.ts:813–820  ·  view source on GitHub ↗
(self: Fiber.Fiber<A, E>)

Source from the content-addressed store, hash-verified

811
812/** @internal */
813export const fiberJoin = <A, E>(self: Fiber.Fiber<A, E>): Effect.Effect<A, E> => {
814 const impl = self as FiberImpl<A, E>
815 if (impl._exit) return impl._exit
816 return callback((resume) => {
817 if (impl._exit) return resume(impl._exit)
818 return sync(self.addObserver(resume))
819 })
820}
821
822/** @internal */
823export const fiberJoinAll = <A extends Iterable<Fiber.Fiber<any, any>>>(self: A): Effect.Effect<

Callers

nothing calls this directly

Calls 4

addObserverMethod · 0.80
callbackFunction · 0.70
resumeFunction · 0.50
syncFunction · 0.50

Tested by

no test coverage detected