x/mobile: windows: app.Main() call does not return when func(app.App) returns #49499
Labels
FrozenDueToAge
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
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/ELzs_0Lu2NZ
What did you expect to see?
When closing the main window, the process should exit and should see both "done" and "main exited" written to log.
What did you see instead?
The process does not exit and only "done" is written to the log. The
app.Main(appMain)
function does not return whenappMain
returns.Expectation based on this documentation: https://pkg.go.dev/golang.org/x/mobile@v0.0.0-20211109191125-d61a72f26a1a/app?GOOS=windows#hdr-Event_processing_in_Native_Apps
This does not appear to be the case, at least on Windows OS. Other platforms not tested.
The text was updated successfully, but these errors were encountered: