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 {
4646 addAbortSignalListener ,
4747 assertFunction ,
4848 catchRejection ,
49+ noop ,
4950} from './utils'
5051export { TaskAbortError } from './exceptions'
5152export type {
@@ -115,7 +116,7 @@ const createFork = (
115116 )
116117
117118 if ( opts ?. autoJoin ) {
118- parentBlockingPromises . push ( result )
119+ parentBlockingPromises . push ( result . catch ( noop ) )
119120 }
120121
121122 return {
@@ -440,7 +441,7 @@ export const createListenerMiddleware = <
440441 } )
441442 }
442443 } finally {
443- await Promise . allSettled ( autoJoinPromises )
444+ await Promise . all ( autoJoinPromises )
444445
445446 abortControllerWithReason ( internalTaskController , listenerCompleted ) // Notify that the task has completed
446447 entry . pending . delete ( internalTaskController )
You can’t perform that action at this time.
0 commit comments