MCPcopy
hub / github.com/Effect-TS/effect / fiberAwait

Function fiberAwait

packages/effect/src/Micro.ts:610–611  ·  view source on GitHub ↗
(self: MicroFiber<A, E>)

Source from the content-addressed store, hash-verified

608 * @category MicroFiber
609 */
610export const fiberAwait = <A, E>(self: MicroFiber<A, E>): Micro<MicroExit<A, E>> =>
611 async((resume) => sync(self.addObserver((exit) => resume(succeed(exit)))))
612
613/**
614 * @since 3.11.2

Callers 2

fiberJoinFunction · 0.85
fiberInterruptFunction · 0.85

Calls 5

asyncFunction · 0.85
resumeFunction · 0.70
addObserverMethod · 0.65
syncFunction · 0.50
succeedFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…