mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Summary:
To bind the wrapped function to an object, just pass that object as the
optional second argument to Meteor.wrapAsync:
var response = Meteor.wrapAsync(HTTP.get, HTTP)("http://example.com");
Test Plan: meteor test-packages meteor
Reviewers: emily, avital, sashko
Reviewed By: emily
CC: nim
Differential Revision: https://phabricator.meteor.com/D807