Open Siwen opened 1 year ago
Same for me.
The freezing issue in your code occurs because you are calling .Result on a task returned by bootstrap.BindAsync(), which blocks the calling thread until the task completes. In Unity, blocking the main thread is problematic because Unity's game loop (and most UI-related tasks) runs on the main thread, which leads to freezing.
How to solve the program freezing when calling bootstrap.BindAsync(localAddress).Result in Unity?
Code: