MCPcopy Create free account
hub / github.com/effect-app/libs / countReset

Function countReset

repos/effect/packages/effect/src/Console.ts:202–207  ·  view source on GitHub ↗
(label?: string)

Source from the content-addressed store, hash-verified

200 * const testConsole: Console.Console = Object.assign(Object.create(console), {
201 * count: (label = "default") => {
202 * const count = (counters.get(label) ?? 0) + 1
203 * counters.set(label, count)
204 * messages.push(`${label}: ${count}`)
205 * }
206 * })
207 * const program = Effect.gen(function*() {
208 * yield* Console.count("my-counter")
209 * yield* Console.count("my-counter")
210 * yield* Console.count()

Callers

nothing calls this directly

Calls 3

consoleWithFunction · 0.85
syncMethod · 0.80
countResetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…