let result = Meteor.wrapAsync((cb) => { setTimeout(() => cb(null, 'Done'), 1000); })();
Now it returns the value directly (or throws an error). Perfect for server-side methods! meteor wrapasync
Wrap the function once outside the method to avoid re-wrapping on every call. let result = Meteor