hprose/hprose-nodejs

客户端不能同步调用吗,想测试个性能都无从下手

Opened this issue · 4 comments

客户端不能同步调用吗,想测试个性能都无从下手

andot commented

这个版本已经是旧的了。你用新的 hprose-typescript 那个版本吧。

andot commented

同步调用直接 await 就行了

返回的是future 好像用不了await

andot commented

可以用 await,Future 是 Promise 接口的实现。另外,再次推荐使用 hprose-typescript 版本。那个直接使用的 js 本身的 Promise 实现。而且代码本身就是基于 async/await 来实现的。