Skip to content

holepunchto/pear-ref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pear-ref

Pear core ref counter

Usage

const ref = require('pear-ref')

ref.on('ref', (refs) => console.log('ref', 'count', refs))
ref.on('unref', (refs) => console.log('unref', 'count', refs))

ref.ref()
handleCreatingCb(function callback() {
  ref.unref()
})

ref.track(handleCreatingPromise())

License

Apache-2.0

About

Pear core ref counter

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors