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

Function setClock

packages/effect/src/Layer.ts:984–989  ·  view source on GitHub ↗
(
  clock: A
)

Source from the content-addressed store, hash-verified

982 * @category clock
983 */
984export const setClock: <A extends Clock.Clock>(clock: A) => Layer<never> = <A extends Clock.Clock>(
985 clock: A
986): Layer<never> =>
987 scopedDiscard(
988 fiberRuntime.fiberRefLocallyScopedWith(defaultServices.currentServices, Context.add(clockTag, clock))
989 )
990
991/**
992 * Sets the current `ConfigProvider`.

Callers

nothing calls this directly

Calls 2

scopedDiscardFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected