MCPcopy Index your code
hub / github.com/Effect-TS/effect / done

Function done

packages/effect/src/internal/fiber.ts:80–96  ·  view source on GitHub ↗
(exit: Exit.Exit<A, E>)

Source from the content-addressed store, hash-verified

78
79/** @internal */
80export const done = <A, E>(exit: Exit.Exit<A, E>): Fiber.Fiber<A, E> => {
81 const _fiber = {
82 ...effectable.CommitPrototype,
83 commit() {
84 return join(this)
85 },
86 ...fiberProto,
87 id: () => FiberId.none,
88 await: core.succeed(exit),
89 children: core.succeed([]),
90 inheritAll: core.void,
91 poll: core.succeed(Option.some(exit)),
92 interruptAsFork: () => core.void
93 }
94
95 return _fiber
96}
97
98/** @internal */
99export const dump = <A, E>(self: Fiber.RuntimeFiber<A, E>): Effect.Effect<Fiber.Fiber.Dump> =>

Callers 4

failFunction · 0.70
failCauseFunction · 0.70
interruptedFunction · 0.70
succeedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected