Return values from callbacks?

# Hemanth H.M (13 years ago)

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 THIShemanth/node-rsj/commit/051c6c45c15e2cebc88dae20b28ffe3335823335

# Brendan Eich (13 years ago)

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

# Hemanth H.M (13 years ago)

WOW! Ok, thank you.