refcounter
Simple refcounter
Last updated 2 years ago by mafintosh .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install refcounter 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

2 Versions

  • 1.0.0                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Total 4
Today 1
This Week 1
This Month 3
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE