Skip to content

holepunchto/refcounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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