forked from joejulian/gio
37717d0df9
The goroutine started by Window.run runs concurrently with the user goroutine receiving from Window.Events, leading to races such as #543. This change replaces the Window.run goroutine and the Window.Events channel with an iterator API driven by the user goroutine directly. Fixes: https://todo.sr.ht/~eliasnaur/gio/543 Signed-off-by: Elias Naur <mail@eliasnaur.com>