Skip to main content

Module core

Module core 

Source
Expand description

Cross-cutting infrastructure shared by render, ui, app, and platform.

cache is the generic LRU framework. resource builds on it for token-keyed asset management. reactive is the Signal / Computed / Effect runtime. perf records trace spans. timer declares time-driven components.

Modules§

cache
perf
Span-based perf tracing. Use crate::trace_span! / #[crate::trace_fn]; this module is the storage layer.
reactive
resource
Generic resource manager. Token-string identification, core::cell::RefCell interior mutability for [&World]-only access from render code, and an optional probe sidecar gated on HasProbe.
timer
Declarative timers — Timer component fires a callback at scheduled MonoClock instants. Reset drift mode (no catch-up). Lifecycle variants cover one-shot, periodic, bounded counts, and bounded wall deadlines. See .local/specs/timer/design.md for the full surface.