See dherman's http://taskjs.org/ for one way that ES6 will support, but which requires expliciti 'yield' usage when you "wrap" to make the preemption point clear.

/be

Hemanth H.M wrote:
Hello Hackers,

If there was a easy way to wrap an asynchronous in a synchronous API would it not be easy? Because we can wrap it that way any API will need to accept a callback to return proceed values.

I bit be speaking absolute non sense here, but just felt something like that might makes things easier, while I was coding THIS <https://github.com/hemanth/node-rsj/commit/051c6c45c15e2cebc88dae20b28ffe3335823335>

--
/'I am what I am because of who we all are'/
h3manth.com <http://www.h3manth.com>
/-- Hemanth HM/
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to