You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'timer work took longer than the sequential timer was configured for (+1s)',
33
+
{
34
+
loopTime,
35
+
milliseconds,
36
+
},
37
+
)
38
+
}
39
+
}
40
+
20
41
/**
21
42
* Create an eventual that performs the work in the Reducer<number, U> function every `milliseconds` milliseconds.
22
43
* The main difference between this and `timer(...).reduce(...)` is that this function will wait for the previous work to complete before starting the next one.
@@ -52,36 +73,25 @@ export function sequentialTimerReduce<T, U>(
52
73
functionwork(){
53
74
constworkStarted=Date.now()
54
75
constpromiseOrT=reducer(acc,workStarted)
55
-
constworkEnded=Date.now()
56
76
constloopTime=workStarted-lastWorkStarted
57
-
constworkTime=workEnded-workStarted
58
-
logger.debug(
59
-
`sequentialTimerReduce loop took ${loopTime}ms, work took ${workTime}ms caller(${caller})`,
60
-
)
61
77
62
-
if(workTime>milliseconds){
63
-
logger.warn(
64
-
'sequentialTimerReduce work took longer than the sequential timer was configured for',
0 commit comments