pub type TaskError = Arc<dyn Error + Sync + Send>;Expand description
The heavy-work idiom: AsyncValue state,
use_task (the blessed load/compute helper), UseTask handle, and
spawn_blocking (the CPU-bound entry point) — Frust’s counterpart to
Flutter’s compute()/FutureBuilder, with explicit cancellation on
component teardown. spawn_blocking joins the existing
spawn/spawn_local routing pair (async IO / UI-thread !Send /
one-off CPU work). App crates need no new dependency: this is the whole
heavy-work surface. See frust_reactive::task for the threading contract.
The boxed error an AsyncValue::Error carries. Arc-wrapped so a
clone of the state is cheap and the error is shareable across the tree.
Aliased Type§
pub struct TaskError { /* private fields */ }