package
Simple refcounter
npm install refcounter
GitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
12.9 kB
Includes dependencies.
Latest published Dec 18, 2024
latest
Registry package owners.
mafintosh
mathiasbuus@gmail.com
const RefCounter = require('refcounter') const refs = new RefCounter() refs.inc() refs.dec() refs.isIdle() // true is no refs await refs.idle() // wait for no refs
Apache-2.0