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

Added abort signal to fetch transport #173

Merged
merged 6 commits into from
May 2, 2018

Conversation

runarheggset
Copy link
Contributor

Added abort signal to fetch transport so that we can cancel requests before any data is sent/received.
Chrome support for AbortController is coming in version 66.

Copy link
Contributor

@easyCZ easyCZ left a comment

Choose a reason for hiding this comment

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

LGTM. @MarcusLongmuir could you PTAL?

@@ -44,12 +45,13 @@ class Fetch implements Transport {
});
}

send(msgBytes: ArrayBufferView) {
send(msgBytes: Uint8Array) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes sense as fetch now only accepts Uint8Array and not ArrayBufferView. Can you replace ArrayBufferView with Uint8Array across the codebase in this change please?

@MarcusLongmuir MarcusLongmuir merged commit 709b592 into improbable-eng:master May 2, 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
Development

Successfully merging this pull request may close these issues.

3 participants