You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: