1.0.3 • Published 6 years ago

async-share v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

async-share

License MIT NPM Version

Call asynchronous methods at the same time, execute only once, and share the result

var asyncShare = require('async-share')

var oldMethod = function (a) {
  // return a Promise instance
}
var newMethod = asyncShare(oldMethod)
newMethod(1)
newMethod(2)
1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago