w3c / payment-request

Payment Request API
https://www.w3.org/TR/payment-request/
Other
489 stars 135 forks source link

Providing an `AbortSignal` instead of calling .abort() #757

Open marcoscaceres opened 6 years ago

marcoscaceres commented 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.

adrianhopebailie commented 6 years ago

Can you give an example of where this pattern is being used today?

marcoscaceres commented 5 years ago

Primarily fetch() - some details: https://developers.google.com/web/updates/2017/09/abortable-fetch