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

Function consoleWith

packages/effect/src/internal/console.ts:20–24  ·  view source on GitHub ↗
(f: (console: Console.Console) => Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

18
19/** @internal */
20export const consoleWith = <A, E, R>(f: (console: Console.Console) => Effect.Effect<A, E, R>) =>
21 core.fiberRefGetWith(
22 defaultServices.currentServices,
23 (services) => f(Context.get(services, defaultConsole.consoleTag))
24 )
25
26/** @internal */
27export const withConsole = dual<

Callers 15

assertFunction · 0.85
console.tsFile · 0.85
countFunction · 0.85
countResetFunction · 0.85
debugFunction · 0.85
dirFunction · 0.85
dirxmlFunction · 0.85
errorFunction · 0.85
groupFunction · 0.85
infoFunction · 0.85
logFunction · 0.85
tableFunction · 0.85

Calls 2

getMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected