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

Function fork

packages/effect/src/Micro.ts:4106–4112  ·  view source on GitHub ↗
(
  self: Micro<A, E, R>
)

Source from the content-addressed store, hash-verified

4104 * @category fiber & forking
4105 */
4106export const fork = <A, E, R>(
4107 self: Micro<A, E, R>
4108): Micro<MicroFiber<A, E>, never, R> =>
4109 withMicroFiber((fiber) => {
4110 fiberMiddleware.interruptChildren ??= fiberInterruptChildren
4111 return succeed(unsafeFork(fiber, self))
4112 })
4113
4114const unsafeFork = <FA, FE, A, E, R>(
4115 parent: MicroFiberImpl<FA, FE>,

Callers

nothing calls this directly

Calls 2

unsafeForkFunction · 0.70
succeedFunction · 0.50

Tested by

no test coverage detected