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

proxy 接口无效 #310

Open
topcoco opened this issue Mar 13, 2024 · 5 comments
Open

proxy 接口无效 #310

topcoco opened this issue Mar 13, 2024 · 5 comments

Comments

@topcoco
Copy link

topcoco commented Mar 13, 2024

image
image

js这样实现会出现什么也不输出的情况 类似卡住 也没有报错 没有任何输出 只能输出到开始 后面的感觉和没执行一样

image

image
java直接实现是正常的

image

这是这个接口的具体实现

@topcoco
Copy link
Author

topcoco commented Mar 13, 2024

image

@caoccao
Copy link
Owner

caoccao commented Mar 13, 2024

I'm afraid I'm not able to get what is the problem you are presenting. Here are a few tips for your reference.

  • Avoid executing JS code or accepting callbacks in UI thread.
  • Try to leave the complete and minimal code snippet so that others can reproduce the issue.

@topcoco
Copy link
Author

topcoco commented Mar 13, 2024

恐怕我无法理解您提出的问题是什么。以下是一些提示供您参考。

  • 避免在 UI 线程中执行 JS 代码或接受回调。
  • 尽量保留完整且最少的代码片段,以便其他人可以重现该问题。

我的意思是 我按照文档的方式调用实现接口的没有效果 这个代码是在子线程调用的 不是在ui的线程中 但是他调用接口后后面的代码都和停掉了一样

@caoccao
Copy link
Owner

caoccao commented Mar 13, 2024

You may join discord and ping me. I'll give you a qrcode to a WeChat group where many Chinese Javet users have group discussion.

@topcoco
Copy link
Author

topcoco commented Mar 13, 2024

image
我知道了 是堵塞在 println("执行挂起")下面的等待执行完成这里 但是很奇怪 java运行 没任何问题 js调用 会堵塞在这俩

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