1.0.0 • Published 6 months ago

refcounter v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

refcounter

Simple refcounter

npm install refcounter

Usage

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

License

Apache-2.0

1.0.0

6 months ago

0.0.0

6 months ago