Add combineSignals
function
#322
Closed
aleclarson
started this conversation in
Ideas
Replies: 1 comment
-
This is already covered by https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/any_static |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This function takes an array of
AbortSignal
objects, creates a newAbortController
which listens to every provided signal, and returns a newAbortSignal
.Motivation: There are times where you have 2+ ways to abort an async operation, and their lifecycles differ, which means multiple
AbortController
s (and therefore, multipleAbortSignal
s) are required.Proposed implementation
Beta Was this translation helpful? Give feedback.
All reactions