Expand description
The platform-independent, owned incremental runtime for Glory.
Reactive values belong to a Runtime and an Owner. Reads track only their immediate consumer; creating a widget does not implicitly subscribe it. Platform adapters supply execution services and consume semantic mutations.
Modules§
- executor
- Ready-only local tasks for native event-loop and streaming hosts. Futures stay on their creating thread; wakers may be used from worker threads.
Structs§
- Binding
Id - Bond
- Cage
- Copy, thread-local reactive identity.
getreturns an owned clone; usewithfor large collections so indexed reads never clone the whole data set. - Graph
Stats - Live graph shape. Kind order: Source, Derived, Structure, Binding, Effect. Degree bins: 0, 1, 2, 3-4, 5-8, 9-64, 65+. Snapshotting is opt-in; it performs no user callbacks and adds no persistent per-node counters.
- Host
Error - Instance
Id - Keyed
Entry - A non-owning entity handle; field aliases belong to their constructing Owner.
- Keyed
List - Owner-owned, thread-local collection of authoritative values and stable keys. Keys must be pure and fixed for a member’s lifetime. Editing its key field does not rename a member; use remove/insert to establish a new identity.
- Owner
- Resource
- A local Copy handle, invalidated with its Owner. Results use Rc so T/E need neither Clone nor PartialEq. Source reads track only the resource driver; reads in the loader are not dependencies of that driver.
- Resource
Seed - Restored terminal data. The caller explicitly decodes the key and result; only a matching initial key suppresses the first request. A refresh always fetches again, including after restoring a business error.
- RowToken
- A membership identity, unchanged by movement or in-place value replacement. Slots may be reused with a new generation; a complete ID is never reused.
- Runtime
- Owns one graph and its scheduler. Runtime is intentionally not Clone.
- Runtime
Id - An application instance, independent of the selected backend.
- Runtime
Stats - Scope
- Selected
- A local, non-owning selected-key read. It subscribes only to its live notification channel, while reading the authoritative selection untracked. Both the selector Owner and registering Owner must still be alive.
- Selector
- An Owner-owned index for a single selected key (
Cage<Option<K>>). - Selector
Stats - Task
- Task
Token
Enums§
Traits§
- Host
- One host owns the event loop. Neither method may synchronously reenter a runtime; spawn queues a future without polling it before returning. Returned cancellation must stop/drop that future. No built-in block_on fallback.
Functions§
- untracked
- Suppress only reads in this closure. Derived computations still track their own dependencies, and purity checks still apply inside untracked code.