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

Function defaultServicesWith

packages/effect/src/internal/defaultServices.ts:51–53  ·  view source on GitHub ↗
(
  f: (services: Context.Context<DefaultServices.DefaultServices>) => Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

49
50/** @internal */
51export const defaultServicesWith = <A, E, R>(
52 f: (services: Context.Context<DefaultServices.DefaultServices>) => Effect.Effect<A, E, R>
53) => core.withFiberRuntime<A, E, R>((fiber) => f(fiber.currentDefaultServices))
54
55/** @internal */
56export const clockWith = <A, E, R>(f: (clock: Clock.Clock) => Effect.Effect<A, E, R>): Effect.Effect<A, E, R> =>

Callers 4

clockWithFunction · 0.85
configProviderWithFunction · 0.85
randomWithFunction · 0.85
tracerWithFunction · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected