(exit: Exit.Exit<A, E>)
| 78 | |
| 79 | /** @internal */ |
| 80 | export 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 */ |
| 99 | export const dump = <A, E>(self: Fiber.RuntimeFiber<A, E>): Effect.Effect<Fiber.Fiber.Dump> => |
no outgoing calls
no test coverage detected