File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
core/src/utils/concurrence
framework/src/services/fetcher/src Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,11 @@ export class PendingWorkPool<T> {
161
161
const minSleepTimeRef = await concurrentPromises ( generator , concurrency )
162
162
163
163
const sleep = this . skipSleep
164
- ? 1
164
+ ? 0
165
165
: minSleepTimeRef . value === MAX_TIMER_INTEGER
166
- ? this . options . interval
166
+ ? this . debouncedJob
167
+ ? undefined
168
+ : this . options . interval
167
169
: minSleepTimeRef . value
168
170
169
171
this . skipSleep = false
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ export class FetcherPool<T> extends PendingWorkPool<T> {
79
79
} )
80
80
}
81
81
82
+ // @note : sleepTime for a fetcher is always between [0, N] never undefined (stop)
83
+ // in case it should stop the checkComplete will remove it from the pool
82
84
protected async getSleepTime (
83
85
fetcher : BaseHistoryFetcher < any > ,
84
86
) : Promise < number > {
You can’t perform that action at this time.
0 commit comments