-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Abort all tasks in Node API #51
Comments
Thank you for this issue! Sounds reasonable. |
I fear there is no standard for it… Thanks for considering it! |
Sadly, the standard of cancelable promises has been withdrawn 😢 . |
I don't think we need to use Promise cancellations for this one. Seems a little extreme and not backwards-compatible. How about keeping a list of processes that are running, and providing a way to exit/kill them all? |
There's always https://github.com/sindresorhus/p-cancelable |
I don't think that the Browsers use AbortController to abort asynchronous operations. This has been standardized already. ECMAScript is following that, cancellation API is discussing (yes, resumed it!) in https://github.com/tc39/proposal-cancellation. It will be similar to |
I'm trying to use the Node API to keep some tasks running in the background, while other tasks are performed. Once the other tasks are finished, I'd like to abort all promises which did not finish.
It looks like there is the
abortTasks
function, but it's not exposed as a public API.It would be nice if that could be changed. :)
The text was updated successfully, but these errors were encountered: