Actually you can, with Fibers. Making asynchronous function to behave like
synchronous is as simple as
fn = sync(fn)
More details http://alexeypetrushin.github.io/synchronize
On Friday, 18 April 2014 19:24:47 UTC+4, Kevin Burton wrote:
>
> I notice that simply leaving off the callback or making a callback null
> doesn't always make a node function synchronous. What is a good general
> pattern for making a node method synchronous (assuming the source for the
> method is available)?
>
>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.