Mainloop

class openpaperwork_core.mainloop_asyncio.Plugin[source]

A main loop. Not as good as GLib main loop, but good enough for shell commands.

get_interfaces()[source]

Indicates the list of interfaces implemented by this plugin. Interface names are arbitrarily defined. Methods provided by each interface are arbitrarily defined (and no checks are done).

Returns a list of string.

mainloop(halt_on_uncatched_exception=True)[source]
mainloop_execute(func, *args, **kwargs)[source]

Ensure a function is run on the main loop, even if called from a thread

mainloop_get_thread_id()[source]
mainloop_quit_graceful()[source]
mainloop_quit_now()[source]
mainloop_ref(obj)[source]
mainloop_unref(obj)[source]
schedule(func, *args, delay_s=0, **kwargs)[source]