Hacker News new | ask | show | jobs
by fourstar 4789 days ago
How does it deal with async stuff if I need it in a serial manner? With node I have async. What does meteor have that's similar?
2 comments

Meteor uses Fibers. And you can do any of the async stuff in Meteor, like you would in Node.js with async.js, with the exception that you will most likely use Futures, and the code style will look synchronous (not the lengthy callback chains we are used to in Node.js). For more on Async execution in Meteor.js, see this link: https://gist.github.com/possibilities/3443021
Meteor is built on top of node.

'npm install async' becomes 'mrt add meteor-async' ...

Sometimes you have to do a little configuration work to get off the shelf NPM packages settled nicely with Fibers; but its not a huge deal and almost every day someone else will turn npm-somePackage into meteor-somePackage.