Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference
Queue API Reference

AsyncQueuerController

Defined in: async-queuer/AsyncQueuerController.ts:8

Owns a AsyncQueuer for a Lit host. Access core methods and selected state through pacer.

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Constructors

Constructor

ts
new AsyncQueuerController<TValue, TSelected>(
   host,
   fn,
   options?,
selector?): AsyncQueuerController<TValue, TSelected>;
new AsyncQueuerController<TValue, TSelected>(
   host,
   fn,
   options?,
selector?): AsyncQueuerController<TValue, TSelected>;

Defined in: async-queuer/AsyncQueuerController.ts:10

Parameters

host

ReactiveControllerHost

fn

(item) => Promise<any>

options?

LitPacerOptions<LitAsyncQueuerOptions<TValue, TSelected>> = {}

selector?

(state) => TSelected

Returns

AsyncQueuerController<TValue, TSelected>

Properties

pacer

ts
readonly pacer: LitAsyncQueuer<TValue, TSelected>;
readonly pacer: LitAsyncQueuer<TValue, TSelected>;

Defined in: async-queuer/AsyncQueuerController.ts:9

Accessors

state

Get Signature

ts
get state(): Readonly<TSelected>;
get state(): Readonly<TSelected>;

Defined in: async-queuer/AsyncQueuerController.ts:20

Selected reactive state. Reading this property participates in host rendering.

Returns

Readonly<TSelected>