Support AbortController
#1511
Labels
enhancement
This change will extend Got features
future
The issue will be worked on in the future
✭ help wanted ✭
Node.js 15 now supports
AbortController
and it makes sense for us to support it in Got. While I'm personally not a big fan of its overly verbose way of handling cancellation, it seems to become the de-facto way of handling cancellation going forward.I think we should still retain the current
.cancel()
method if possible.https://medium.com/@nodejs/node-js-v15-0-0-is-here-deb00750f278
https://developer.mozilla.org/en-US/docs/Web/API/AbortController
nodejs/node@8390f8a86b
The text was updated successfully, but these errors were encountered: