-
Notifications
You must be signed in to change notification settings - Fork 0
BaseModule
cr3eperall edited this page Sep 12, 2024
·
1 revision
This is an helper struct that handles common operations of a module.
It can:
- Register/Unregister an activity with the app.
- Hold an array of producers to be restarted.
- Handle the update of GTK properties on the main UI thread
Producers are functions that are responsible for producing data for the UI elements.
They run on the main thread so they should return as soon as possible,
long tasks and loops should be put in an async runtime (ProducerRuntime
)
A wrapper around a tokio
runtime.
It handles the restarting of tasks spawned on it by using a cleanup notifier.