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

[Unity]在Unity下的WebsocketTest用例实际上没跑 #1922

Open
chexiongsheng opened this issue Nov 20, 2024 · 0 comments
Open

[Unity]在Unity下的WebsocketTest用例实际上没跑 #1922

chexiongsheng opened this issue Nov 20, 2024 · 0 comments

Comments

@chexiongsheng
Copy link
Collaborator

chexiongsheng commented Nov 20, 2024

detail | 详细描述

那个是一个async函数,unity下的用例执行,只是反射invoke并不能保证它往下执行。

如果等待其执行,WebsocketTest用例会卡死。

 var task = method.Invoke(testInstance, null) as System.Threading.Tasks.Task;
  if (task != null)
  {
      task.Wait();
  }
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

1 participant