Added Gulp.js for compiling SCSS stylesheets
This commit is contained in:
13
node_modules/ext/docs/promise/limit.md
generated
vendored
Normal file
13
node_modules/ext/docs/promise/limit.md
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# `Promise.limit` _(ext/promise/limit)_
|
||||
|
||||
Helps to limit concurrency of asynchronous operations.
|
||||
|
||||
```javascript
|
||||
const limit = require("ext/promise/limit").bind(Promise);
|
||||
|
||||
const limittedAsyncFunction = limit(2, asyncFunction);
|
||||
|
||||
imittedAsyncFunction(); // Async operation started
|
||||
imittedAsyncFunction(); // Async operation started
|
||||
imittedAsyncFunction(); // On hold until one of previously started finalizes
|
||||
```
|
Reference in New Issue
Block a user