FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Drop-Notes/node_modules/async/applyEachSeries.js at main · ficcc/Drop-Notes · GitHub
ficcc
Drop-Notes
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Drop-Notes
/
node_modules
/
async
/
applyEachSeries.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (30 loc) · 1.27 KB
Breadcrumbs
Drop-Notes
/
node_modules
/
async
/
applyEachSeries.js
Copy path
File metadata and controls
37 lines (30 loc) · 1.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'use strict'
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
}
)
;
var
_applyEach
=
require
(
'./internal/applyEach.js'
)
;
var
_applyEach2
=
_interopRequireDefault
(
_applyEach
)
;
var
_mapSeries
=
require
(
'./mapSeries.js'
)
;
var
_mapSeries2
=
_interopRequireDefault
(
_mapSeries
)
;
function
_interopRequireDefault
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
:
{
default
:
obj
}
;
}
/**
* The same as [`applyEach`]{
@link
module:ControlFlow.applyEach} but runs only a single async operation at a time.
*
*
@name
applyEachSeries
*
@static
*
@memberOf
module:ControlFlow
*
@method
*
@see
[async.applyEach]{
@link
module:ControlFlow.applyEach}
*
@category
Control Flow
*
@param
{
Array|Iterable|AsyncIterable|Object
} fns - A collection of {
@link
AsyncFunction}s to all
* call with the same arguments
*
@param
{
...*
} [args] - any number of separate arguments to pass to the
* function.
*
@param
{
Function
} [callback] - the final argument should be the callback,
* called when all functions have completed processing.
*
@returns
{
AsyncFunction
} - A function, that when called, is the result of
* appling the `args` to the list of functions. It takes no args, other than
* a callback.
*/
exports
.
default
=
(
0
,
_applyEach2
.
default
)
(
_mapSeries2
.
default
)
;
module
.
exports
=
exports
.
default
;
Back
|
FazBrowse Home
|
New Git URL