Queued application events never read
Closedopened 2 years ago by steampoweredtaco · 1 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Thanks so much for this project; I like it.
Now the issue I ran into using email@example.com is that the Application.events channel is not read anywhere I can find in the code. So, Application.QueueEvent does not result in an event that is processed and also the event resize throttle mechanism are also never processed.
If you checkout application.go you'll find that the chanel for events Application.events (a.events) is only used as a sender twice and never as a receiver.
This could leave the app in a state of many AfterFuncs goroutines stuck and also my code that uses QueueEvent to lock up after the channel becomes saturated.
I think adding this to run may fix it:
However I think this could make a race between throttled resize events and the screen, so maybe it should be part of the main screen event loop somehow.
Unfortunatly I don't know of a way to workaround this issue currently for QueueEvent because the handle function isn't reachable from my package.
Thanks for reporting this.