MCPcopy Create free account
hub / github.com/Effect-TS/effect / consoleWith

Function consoleWith

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

Source from the content-addressed store, hash-verified

110 * @since 2.0.0
111 */
112export const consoleWith = <A, E, R>(f: (console: Console) => Effect.Effect<A, E, R>): Effect.Effect<A, E, R> =>
113 core.withFiber((fiber) => f(fiber.getRef(Console)))
114
115/**
116 * Writes the supplied assertion message to the console as an error when `condition` is false; when `condition` is true, no console output is produced.

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

getRefMethod · 0.80
fFunction · 0.50

Tested by

no test coverage detected