Pacer Docs
API Reference
Debouncer API Reference
- DebouncerOptions
- DebouncerState
- AsyncDebouncerOptions
- AsyncDebouncerState
- debounce
- asyncDebounce
- Debouncer
- AsyncDebouncer
- AsyncDebouncerController
- DebouncerController
- createAsyncDebouncer
- createDebouncedState
- createDebouncedValue
- createDebouncer
- LitAsyncDebouncer
- LitAsyncDebouncerOptions
- LitDebouncer
- LitDebouncerOptions
Throttler API Reference
- ThrottlerOptions
- ThrottlerState
- AsyncThrottlerOptions
- AsyncThrottlerState
- throttle
- asyncThrottle
- Throttler
- AsyncThrottler
- AsyncThrottlerController
- ThrottlerController
- createAsyncThrottler
- createThrottledState
- createThrottledValue
- createThrottler
- LitAsyncThrottler
- LitAsyncThrottlerOptions
- LitThrottler
- LitThrottlerOptions
Rate Limiter API Reference
- RateLimiterOptions
- RateLimiterState
- AsyncRateLimiterOptions
- AsyncRateLimiterState
- rateLimit
- asyncRateLimit
- RateLimiter
- AsyncRateLimiter
- AsyncRateLimiterController
- RateLimiterController
- createAsyncRateLimiter
- createRateLimitedState
- createRateLimitedValue
- createRateLimiter
- LitAsyncRateLimiter
- LitAsyncRateLimiterOptions
- LitRateLimiter
- LitRateLimiterOptions
Queue API Reference
AI/LLM: This documentation page is available in plain markdown format at/pacer/latest/docs/framework/lit/reference/classes/ThrottlerController.md
Throttler API Reference
ThrottlerController
Defined in: throttler/ThrottlerController.ts:9
Owns a Throttler for a Lit host. Access core methods and selected state through pacer.
Type Parameters#
TFn#
TFn extends AnyFunction
TSelected#
TSelected = { }
Constructors#
Constructor#
ts
new ThrottlerController<TFn, TSelected>(
host,
fn,
options,
selector?): ThrottlerController<TFn, TSelected>;Defined in: throttler/ThrottlerController.ts:11
Parameters#
host#
ReactiveControllerHost
fn#
TFn
options#
LitPacerOptions<LitThrottlerOptions<TFn, TSelected>>
selector?#
(state) => TSelected
Returns#
ThrottlerController<TFn, TSelected>
Properties#
pacer#
ts
readonly pacer: LitThrottler<TFn, TSelected>;Defined in: throttler/ThrottlerController.ts:10
Accessors#
state#
Get Signature#
ts
get state(): Readonly<TSelected>;Defined in: throttler/ThrottlerController.ts:21
Selected reactive state. Reading this property participates in host rendering.
Returns#
Readonly<TSelected>