3 ms·
I've tried using it before, but the requirement to wrap all async methods in synchronous helpers is pretty annoying. I just don't understand why Meteor decided
by morgante 11y ago
I've tried using it before, but the requirement to wrap all async methods in synchronous helpers is pretty annoying.
I just don't understand why Meteor decided to be incompatible with the vast majority of server-side JavaScript in the wild.
- kentonv 11y agoYou don't have to wrap your async methods if you don't want to. Meteor prefers to use fibers since a lot of people find them easier to work with, but if you write async code it will generally work fine. The one thing is that when you want to call back into Meteor code, you need to do it in a fiber, so you'll probably want to write a little helper for that. Here's my version: https://github.com/sandstorm-io/sandstorm/blob/master/shell/server/proxy.js#L59 https://github.com/sandstorm-io/sandstorm/blob/master/shell/...