Re: [racket-users] Problem with threads and GUI event handling

2016-08-31 Thread Erich Rast
Such an easy solution, works like a charm! Thanks a lot! -- Erich On Wed, 31 Aug 2016 11:46:44 -0600 Matthew Flatt wrote: > Hi Erich, > > Use `yield` in place of `sync`. Using `yield` will wait for the thread > to complete in the same way as `sync`, but it will dispatch GUI events > while wai

Re: [racket-users] Problem with threads and GUI event handling

2016-08-31 Thread Matthew Flatt
Hi Erich, Use `yield` in place of `sync`. Using `yield` will wait for the thread to complete in the same way as `sync`, but it will dispatch GUI events while waiting. Matthew At Wed, 31 Aug 2016 18:10:17 +0100, Erich Rast wrote: > Hi! > > I have a problem with the interplay between the racket G

[racket-users] Problem with threads and GUI event handling

2016-08-31 Thread Erich Rast
Hi! I have a problem with the interplay between the racket GUI main thread and other threads. My application connects to a socket and creates a GUI. Some of the GUI events are sent over the socket, and everything is highly asynchronous -- there are multiple threads and channels between them for so