rhx/SwiftGtk

GTK MainLoop and Swift/Foundation MainLoop Integration

austintatiousness opened this issue · 1 comments

How does one go about integrating the Swift/Foundation main loop with GTK MainLoop. Specifically, I need concurrency (Tasks, et cetera) to work properly.

rhx commented

What you probably want to look at is using the standard Swift/Foundation RunLoop together with mainIterationDo(blocking: false). This way you can make both runloops co-exist.