Add combineSignals
function
#322
aleclarson
started this conversation in
Ideas
Replies: 0 comments
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