光纤运行功能返回undefined

时间:2015-09-09 15:15:19

标签: node.js meteor

我有这样的代码

var res = Fiber(function() {
  var report;
  // some asynchronous operations, result is in report
  return report;
}).run();

在res中,我每次都未定义。我没有回复,而是尝试了Fiber.yield(报告),但没有帮助。怎么办?我顺便使用Meteor。

光纤内部的功能运行良好,console.log返回良好的结果。

0 个答案:

没有答案
相关问题