On Sunday, 17 May 2020 at 10:19:38 UTC, Russel Winder wrote:
I am experimenting with using manual control of the Glib event loop using the pending and iteration methods on the default MainContext within each unit- threaded test. The alternative of running a GTK application and then putting the tests in as an asynchronous sequence only works with Rust and Python since D has no coroutines of any sort.
A Fiber can't be used for this ? D Fibers don't have a scheduler. Yielding returns to the caller context.
https://dlang.org/phobos/core_thread_fiber.html