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

Function fiberIdWith

packages/effect/src/internal/core.ts:741–743  ·  view source on GitHub ↗
(
  f: (descriptor: FiberId.Runtime) => Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

739
740/* @internal */
741export const fiberIdWith = <A, E, R>(
742 f: (descriptor: FiberId.Runtime) => Effect.Effect<A, E, R>
743): Effect.Effect<A, E, R> => withFiberRuntime((state) => f(state.id()))
744
745/* @internal */
746export const flatMap = dual<

Callers

nothing calls this directly

Calls 3

withFiberRuntimeFunction · 0.85
idMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected