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

CP-2239 Support synchronous XHR in the browser #166

Open
evanweible-wf opened this issue Jun 27, 2016 · 0 comments
Open

CP-2239 Support synchronous XHR in the browser #166

evanweible-wf opened this issue Jun 27, 2016 · 0 comments

Comments

@evanweible-wf
Copy link
Contributor

XMLHttpRequest supports sending requests synchronously. One example of this being useful is sending a request during a window's unload event - an async request won't actually be sent because the window will unload as soon as the current execution stack is finished.

We should support this, although it will be browser-only (throw UnsupportedError if configured for VM).

This will either require a new optional sync parameter or an altogether new API specifically for sending synchronous requests depending on how much of the async code we can avoid in the request implementation.

Most importantly, it is dependent on this bug in the SDK: dart-lang/sdk#24637

@charliekump-wf charliekump-wf changed the title Support synchronous XHR in the browser CP-2239 Support synchronous XHR in the browser Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant