Skip to content

Add types for AbortController #328

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

Merged
merged 2 commits into from
Feb 25, 2019
Merged

Add types for AbortController #328

merged 2 commits into from
Feb 25, 2019

Conversation

guymers
Copy link
Contributor

@guymers guymers commented May 13, 2018

Add AbortController and AbortSignal classes along with adding signal
to the Fetch request classes. In addition also add keepalive to Fetch
request and fix the names of the cache and redirect properties.

Add AbortController and AbortSignal classes along with adding `signal`
to the Fetch request classes. In addition also add `keepalive` to Fetch
request and fix the names of the `cache` and `redirect` properties.
@aappddeevv
Copy link

Can we get this merged? I'd like to abort some fetch requests and have that in this library vs my own code.

Copy link
Member

@sjrd sjrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ach, I had started a review of this, but never completed it. Here it is.

@aappddeevv
Copy link

I'm reading https://fetch.spec.whatwg.org/#body and don't see where keepalive can change. How did you interpret it that way?

I'm all for deprecating the binary API of apply.

@sjrd
Copy link
Member

sjrd commented Feb 21, 2019

Hum indeed it seems keepalive can't change.

Change types for properties that can change from `val` to `def`.
@sjrd sjrd merged commit c85473e into scala-js:master Feb 25, 2019
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

Successfully merging this pull request may close these issues.

3 participants