Option to prematurely end execution of retry and parallel #256
SaidbekAbdiganiev
started this conversation in
Ideas
Replies: 1 comment
-
thinking about it, this Feel free to open a PR, you can use the |
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
-
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?
Beta Was this translation helpful? Give feedback.
All reactions