Package: effect
Module: Console
Resets the counter associated with the specified label back to zero.
Example (Resetting a counter)
import { Console, Effect } from "effect"
const program = Effect.gen(function*() {
yield* Console.count("my-counter")
yield* Console.count("my-counter") // Will show: my-counter: 2
yield* Console.countReset("my-counter")
yield* Console.count("my-counter") // Will show: my-counter: 1
})
Signature
declare const countReset: (label?: string) => Effect.Effect<void>
Since v2.0.0