-
Notifications
You must be signed in to change notification settings - Fork 16
/
now-and-later.node.txt
22 lines (15 loc) · 1.72 KB
/
now-and-later.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
NOW-AND-LATER
VERSION ==> #3.0.0
#Async map in parallel|series
NOW-AND-LATER.mapSeries(OBJ|ARR,
FUNC(VAL,KEY,FUNC2(ERROR, VAL2)) #Async map over OBJ|ARR keys|values
[, OPTS] #Is performed serially.
[, FUNC3(ERROR, VAL2_ARR)]) #If any FUNC2() is called with ERROR, series stops.
NOW-AND-LATER.map(...) #Same but in parallel
OPTS.concurrency #NUM (def: none)
OPTS.create(VAL, KEY)->OBJ2 #Called before each iteration
OPTS.before(OBJ2) #Called before each iteration
OPTS.after(VAL2, OBJ2) #Called after each successful iteration
OPTS.error(ERROR, OBJ2) #Called after each error iteration