function injectThrottledSignal<TValue>(initialValue, options): AngularThrottlerSignal<TValue>;Defined in: packages/angular-pacer/src/throttler/injectThrottledSignal.ts:53
Creates an Angular throttled editable signal.
The initial value is available synchronously. set and update share a throttler. Leading writes may apply immediately; subsequent writes replace the pending trailing write without extending its deadline. An updater runs against the committed value when executed.
The returned value is a real Angular writable signal with the underlying utility exposed on throttler. Options accept a static object or reactive factory and follow injectThrottler lifecycle and provider behavior.
TValue
MaybeAccessor<TValue>
The initial committed value.
MaybeAccessor<AngularThrottlerOptions<(value) => void>>
Core options or a reactive options factory.
AngularThrottlerSignal<TValue>
The writable signal with set, update, asReadonly, and a throttler attribute.
// In a component or service injection context.
const value = injectThrottledSignal(0, { wait: 250 })
value.set(10)
value.update(previous => previous + 1)
console.log(value())function injectThrottledSignal<TValue, TSelected>(
initialValue,
options,
selector): AngularThrottlerSignal<TValue, TSelected>;Defined in: packages/angular-pacer/src/throttler/injectThrottledSignal.ts:63
Creates the value signal with selected state on its attached utility ref.
TValue
TSelected
MaybeAccessor<TValue>
MaybeAccessor<AngularThrottlerOptions<(value) => void>>
(state) => TSelected
Selects reactive state exposed on the attached utility ref.
AngularThrottlerSignal<TValue, TSelected>