News for hackers. Stuff that matters.
Re:Show HN: asyncblock - Node.js async flow control built on... by scriby on Saturday May 12, 2012 @09:27PM (#3965724)
Chaining blocks works, for instance something like:

var queryResult = getDatabase().sync(). getCollection().sync(). fetch({ query }).sync();

Assuming all those are asynchronous operations.

Chaining wouldn't work with .defer() right now. It only supports syntax like "var x = something().defer()".

There are no comments on this comment yet.