Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zznan0o0 opened this issue Feb 27, 2020 · 4 comments
Open

Comments

@zznan0o0
Copy link

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

@andot
Copy link
Member

andot commented Feb 27, 2020

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

@andot
Copy link
Member

andot commented Feb 27, 2020

同步调用直接 await 就行了

@zznan0o0
Copy link
Author

zznan0o0 commented Mar 2, 2020

返回的是future 好像用不了await

@andot
Copy link
Member

andot commented Mar 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants