-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
🚀 AbortController in Node task list #33528
Comments
Starting to work on an Initial list of core APIs that can utilize AbortController. Please feel free to edit this everyone. |
@jasnell hey just to understand, are you interested in only supporting the promise (or promisifed) versions of the APIs (at least initially) or would you like to also explore adding it to the callback versions? (Inb4: doing one or the other does not preclude us from doing one or the other in the future) |
Supporting on callback versions is certainly possible and would likely help make things more consistent. |
We need to also think about abort detection,
|
@Bnaya thanks, I added it to the list, feel free to spin up a document and bikeshed there - it's not like it's half of what we do together in our 9-5 anyway :D |
@ptomato would either of you be interested in taking the API bikeshedding part? I went over some APIs? (I'm trying to figure for what APIs it makes sense but probably not how it would look like). Error are also interesting to discuss |
Yes, definitely. I had actually already started on that for myself. There is some proof of concept in https://github.com/ptomato/node/commits/31971-abortcontroller . I don't have much time to work on it this week, but next week I can continue. |
This has been superseded and stalled so I'm closing. The usual "if anyone feels strongly - feel free to reopen" :) |
Hey,
James started a PR at #33527 and we're having a summit meeting in openjs-foundation/summit#273 regarding adding AbortController to core.
Other than checking out the code and testing it (please do) James listed some work items in that PR when I asked and I figured it would be nice to have a list of them here.
This list is mutable. While our process is typically that collaborators don't edit each other's posts - you are welcome to add/remove/edit this list (please do!) as you see fit:
AbortController
and see where it makes sense.fs.promise.readFile
which is multiple operations (we can cancel in between) but anfs.promises.read
is not discreetly cancellable.util.promisify
should support cancellation, and if it does what that API should look like.AbortError
s when things go wrong.The text was updated successfully, but these errors were encountered: