Open marcoscaceres opened 6 years ago
It would nice, in a future version of the spec, for consistency with new DOM APIs, for promise-returning methods to accept an AbortSignal. We could then deprecate .abort() over time.
AbortSignal
.abort()
Can you give an example of where this pattern is being used today?
Primarily fetch() - some details: https://developers.google.com/web/updates/2017/09/abortable-fetch
fetch()
It would nice, in a future version of the spec, for consistency with new DOM APIs, for promise-returning methods to accept an
AbortSignal
. We could then deprecate.abort()
over time.