x/mobile: UI hangs when Go code called from Swift communicates over the network; time.Sleep
works fine
#65371
Labels
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I used quic-go to implement a function to send messages to the server and receive data, which I turned into an iOS library with the gomobile bind command.
This function is called in swift as follows.
I am using "Task.detached" to make asynchronous calls, but when the QuicFetch function starts processing, the UI stops.
I experimentally modified the code of golang's Fetch function as follows and used it in the same way in swift.
This function was properly processed in the background and the UI did not stop.
I would like to know why the UI stops when trying to process in the background only when communicating with quic-go.
The text was updated successfully, but these errors were encountered: