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

Function setConsole

packages/effect/src/internal/console.ts:45–51  ·  view source on GitHub ↗
(console: A)

Source from the content-addressed store, hash-verified

43
44/** @internal */
45export const setConsole = <A extends Console.Console>(console: A): Layer.Layer<never> =>
46 layer.scopedDiscard(
47 fiberRuntime.fiberRefLocallyScopedWith(
48 defaultServices.currentServices,
49 Context.add(defaultConsole.consoleTag, console)
50 )
51 )
52
53/** @internal */
54export const assert = (condition: boolean, ...args: ReadonlyArray<any>) =>

Callers

nothing calls this directly

Calls 1

addMethod · 0.65

Tested by

no test coverage detected