Meteor.wrapAsync

I couuldn’t find an appropriate category - can we have a “Tips” category?

Anyway, I found a really helpful example of the use of Meteor.wrapAsync the other day, and it helped me with what I was trying to do - here’s the gist:

The NPM library I was using had three parameters in its callback function - so I wrote it the above way, and it worked!

Hope that helps!

6 Likes