> Inconsistent sync/async > When functions are sometimes sync and sometimes async lead to hard to use > apis, subtle bugs and more error handling wrapper code. Always wrap > callbacks in process.nextTick if they're not behind an async operation. > Simple.
As others have written, if you have to have to do this,then your async handling is cranked up. Caches aren't there for nothing. If the callee depends on a particular order that it is in error not you, and I'd rather see errors fixed than leaving them in and not raising'em. I won't say, use one of the 1000ooo.... (a)sync libraries, but if the callee would use one of them (like my favorite streamline) the "problem" won't be one, and that one for example will get good performance using trampolining technology. This is only sanely available to you if you are the application developer, if you develop a library, just take care. -- 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
