ReadonlySignal
interfaceA value you can read now and be told about later. The host hands these out for state it owns, so a mod never polls. Read `value` for the current data, call `subscribe` to be woken on every change, and call the returned function to stop listening.
Import
import { ReadonlySignal } from '@modular/sdk';Members2
- value
TThe value at this moment.
- subscribe
(listener: (value: T) => void) => () => voidRun `listener` on every change. Call the result to unsubscribe.
Notes
- category
- Context