相关疑难解决方法(0)

Meteor:在Meteor.method中调用异步函数并返回结果

我想在Meteor方法中调用异步函数,然后将该函数的结果返回给Meteor.call.

(怎么样)可能吗?

Meteor.methods({
  my_function: function(arg1, arg2) {
    //Call other asynchronous function and return result or throw error
  }
});
Run Code Online (Sandbox Code Playgroud)

javascript meteor

39
推荐指数
4
解决办法
3万
查看次数

标签 统计

javascript ×1

meteor ×1