Skip to content

isaacs/promise-protect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

promise-protect

Protect promise-returning functions from being called more than once in parallel.

Written during this twitter exchange.

USAGE

const protect = require('promise-protect')

protect(fn, 'name', some, args).then(result => {})
// won't call fn until the last one resolves
protect(fn, 'name', other, args).then(otherResult => {})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages