File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/toolkit/src/listenerMiddleware Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ import {
46
46
addAbortSignalListener ,
47
47
assertFunction ,
48
48
catchRejection ,
49
+ noop ,
49
50
} from './utils'
50
51
export { TaskAbortError } from './exceptions'
51
52
export type {
@@ -115,7 +116,7 @@ const createFork = (
115
116
)
116
117
117
118
if ( opts ?. autoJoin ) {
118
- parentBlockingPromises . push ( result )
119
+ parentBlockingPromises . push ( result . catch ( noop ) )
119
120
}
120
121
121
122
return {
@@ -440,7 +441,7 @@ export const createListenerMiddleware = <
440
441
} )
441
442
}
442
443
} finally {
443
- await Promise . allSettled ( autoJoinPromises )
444
+ await Promise . all ( autoJoinPromises )
444
445
445
446
abortControllerWithReason ( internalTaskController , listenerCompleted ) // Notify that the task has completed
446
447
entry . pending . delete ( internalTaskController )
You can’t perform that action at this time.
0 commit comments