Last week I read @benjamn’s presentation from GOTO Chicago on “Why Fibers Make Sense for Meteor” and got a much better sense of why Fibers are still needed in a Javascript world with Promises, Iterators, and Generators. (Great slides Ben, thanks for posting them!) I was surprised and happy to find out that Ben already made the meteor-promise npm package that wraps Promises with Fibers, and gives us new abilities with Promise.await
and Promise.async
. I’m also curious and excited to see that it’s a vanilla Node package and not just a Meteor one. The more we can share with everyone else the better
I was wondering what the recommendation is to start using this today? I tried to drop it into an existing application with Npm.depends
and browserify but I couldn’t get it working after about an hour or so. I think it was from conflicts between native Promises/Babel & meteor-promise, but I may be wrong.
Anyway, it’d be great to start experimenting with the package. Dropping all of the Meteor.bindEnvironment
calls every time I use a Promise would be SO nice Guidance either here or on the README would be