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

Test signal reuse. Add AbortSignal polyfill. #2

Merged
merged 3 commits into from
Feb 3, 2018

Conversation

joaovieira
Copy link
Collaborator

@joaovieira joaovieira commented Feb 2, 2018

Added a test for reusing the same signal to cancel multiple fetch requests (e.g. https://developers.google.com/web/updates/2017/09/abortable-fetch#one_signal_many_fetches)

With that I noticed we needed a better polyfill to handle multiple event listeners, so I added an AbortSignal polyfill (with EventTarget). It's on a separate file so it can be swapped with any other implementation. I'm keen on fixing mo/abortcontroller-polyfill#11 and use that instead when ready.

(Sorry, I know I could've pushed to your branch directly, but had already a big chunk of WIP on mine)

@jamesplease
Copy link
Owner

(Sorry, I know I could've pushed to your branch directly, but had already a big chunk of WIP on mine)

Hey man, no need to apologize. Do whatever you need to do. I really appreciate you putting the time to contribute ✌️

Signed-off-by: João Vieira <joaoguerravieira@gmail.com>
@joaovieira joaovieira merged commit 66ed8ba into jamesplease:abort-polyfill Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants