-
Pl
chevron_right
Christian Hergert: Libdex Futures from asyncio
news.movim.eu / PlanetGnome • Yesterday - 21:18
One of my original hopes for Libdex was to help us structure complex asynchronous code in the GNOME platform. If my work creating Foundry and Sysprof are any indicator, it has done leaps and bounds for my productivity and quality in that regard.
Always in the back of my mind I hoped we could make those futures integrate with language runtimes.
This morning I finally got around to learning enough of Python’s
asyncio
module to write the extremely minimal glue code.
Here is a commit
that implements integration as a PyGObject introspection override. It will automatically load when you
from gi.repository import Dex
.
This only integrates with the
asyncio
side of things so your application is still responsible for integrating
asyncio
and
GMainContext
or else nothing will be pumping the
DexScheduler
. But that is application toolkit specific so I must leave that to you.
I would absolutely love it if someone could work on the same level of integration for GJS as I have even less experience with that platform.