const Future = require(‘纤维/未来’)function myfunc(){ var future = new Future(); Eos()。getInfo((err,res)=> { 未来[ “返回”] = RES; }) return future.wait();};…
由于错误表明未来只能在光纤内运行时“等待”
console.log(Fiber(myfunc).run());