Correct me if I was wrong: I don’t think you need to change anything because you has a callback function already.
The case you must change is calling without callback function. e.g: const someVar = Meteor.call('my-method', arg1, arg2)
to const someVar = await Meteor.callAsync('my-method', arg1, arg2)
Hello,
I don’t understand. In the documentation there is no example of callAsync with a callback.
On the client :
Meteor.callAsync(‘my-async-method’, arg1, function(err, res){})
will work ?
Or do I need the .then ?
Thanks.