Why is the exposed xhr interface is synchronous?

13 views
Skip to first unread message

Amirouche Boubekki

unread,
Oct 30, 2016, 2:12:41 PM10/30/16
to BiwaScheme
Héllo,

Why is http-get and http-post synchronous?

TIA

Yutaka Hara

unread,
Oct 31, 2016, 3:07:19 PM10/31/16
to biwas...@googlegroups.com
Hello,

2016-10-31 3:12 GMT+09:00 Amirouche Boubekki <amirouche...@gmail.com>:
> Why is http-get and http-post synchronous?
>
- (Reason 1) Because I just wanted synchronous Ajax APIs, which are easy to use
in most cases.

- (Reason 2) They are demonstration of aync-to-sync feature of
BiwaScheme. Though
their interfaces are synchronous, they does not block the browser
because BiwaScheme
uses setTimeout internally to avoid blocking.

--
Yutaka HARA
Reply all
Reply to author
Forward
0 new messages