Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/mod.universal.ts>PayloadReferenceCounter

Exploring Willow in the most efficient and sound programming language
Go to Latest
interface PayloadReferenceCounter
Re-export
import { type PayloadReferenceCounter } from "https://deno.land/x/willow@0.2.1/mod.universal.ts";

Keeps count of how many entries refer to a given payload, and is ablo to modify that count.

Type Parameters

PayloadDigest

Methods

increment(digest: PayloadDigest): Promise<number>
decrement(digest: PayloadDigest): Promise<number>
count(digest: PayloadDigest): Promise<number>