Function signal_local

pub fn signal_local<T>(
    value: T,
) -> (ReadSignal<T, LocalStorage>, WriteSignal<T, LocalStorage>)
where T: 'static,
Expand description

Creates an arena-allocated signal.

Unlike signal, this does not require the value to be Send + Sync. Instead, it is stored on a local arena. Accessing either of the returned signals from another thread will panic.