async-singleton
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "async-singleton", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "make async/promise function execute only one at a time.", | ||
@@ -35,3 +35,15 @@ "main": "index.js", | ||
}, | ||
"dependencies": {} | ||
"dependencies": {}, | ||
"directories": { | ||
"lib": "lib", | ||
"test": "test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/shokai/async-singleton.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/shokai/async-singleton/issues" | ||
}, | ||
"homepage": "https://github.com/shokai/async-singleton#readme" | ||
} |
@@ -13,2 +13,4 @@ # async-singleton | ||
### singleton | ||
```js | ||
@@ -32,3 +34,3 @@ const asyncSingleton = require('async-singleton') | ||
singleCountUp(10) // skip this | ||
await singleCountUp(20) // skip this | ||
await singleCountUp(20) // skip this, but wait for "singleCountUp(0)" to finish | ||
@@ -38,4 +40,5 @@ singleCountUp(30) // run this | ||
result | ||
#### result | ||
``` | ||
@@ -65,6 +68,6 @@ 0 | ||
singleCountUp(20) // skip | ||
singleCountUp(30) // run after "sinleCountUp(0)" | ||
singleCountUp(30) // run, but wait for "sinleCountUp(0)" to finish | ||
``` | ||
result | ||
#### result | ||
@@ -71,0 +74,0 @@ ``` |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
9604
1
1
82
0