The modern, community-first TypeScript toolkit with all of the fast, readable, and minimal utility functions you need. Type-safe, dependency-free, tree-shakeable, fully tested.
Currently, there is no way to forcibly terminate execution of retry and parallel functions. This presents a problem in scenarios where:
A large number of parameters are provided to parallel, or
A high retry count is set for retry
In such cases, we must wait for all iterations to complete, which can lead to unnecessarily long execution times.
The simplest solution that comes to mind is just to use AbortController, but I'm not sure if this is good enough since AbortController tends to be slow in Node (or at least I heard so). Would you like me to open a PR with an implementation of this feature?
Currently, there is no way to forcibly terminate execution of
retry
andparallel
functions. This presents a problem in scenarios where:parallel
, orretry
In such cases, we must wait for all iterations to complete, which can lead to unnecessarily long execution times.
The simplest solution that comes to mind is just to use AbortController, but I'm not sure if this is good enough since AbortController tends to be slow in Node (or at least I heard so). Would you like me to open a PR with an implementation of this feature?