Skip to content
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

如何取消 fetch #3

Open
forl opened this issue Dec 17, 2018 · 0 comments
Open

如何取消 fetch #3

forl opened this issue Dec 17, 2018 · 0 comments

Comments

@forl
Copy link
Owner

forl commented Dec 17, 2018

关于如何取消 fetch,曾有过许多讨论,也有很多的方案被提出来。

  1. 最初的讨论:Aborting a fetch whatwg/fetch#27
  2. Cancelable promise 的方案被否了:Potential security issues when applied to fetch() tc39/proposal-cancelable-promises#4
  3. 其它方案继续讨论:Aborting a fetch: The Next Generation whatwg/fetch#447
  4. 讨论出的提案:Aborting a fetch: The Next Generation whatwg/fetch#447 (comment)
  5. whatwg 最终给出的标准:https://dom.spec.whatwg.org/#dom-abortcontroller-abortcontroller
  6. MDN 使用文档:https://developer.mozilla.org/en-US/docs/Web/API/AbortController/AbortController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant