我想在Meteor方法中调用异步函数,然后将该函数的结果返回给Meteor.call.
(怎么样)可能吗?
Meteor.methods({ my_function: function(arg1, arg2) { //Call other asynchronous function and return result or throw error } });
javascript meteor
javascript ×1
meteor ×1