Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.35 KB

File metadata and controls

52 lines (31 loc) · 1.35 KB
id AngularAsyncRateLimiter
title AngularAsyncRateLimiter

Interface: AngularAsyncRateLimiter<TFn, TSelected>

Defined in: angular-pacer/src/async-rate-limiter/injectAsyncRateLimiter.ts:24

Extends

  • Omit<AsyncRateLimiter<TFn>, "store">

Type Parameters

TFn

TFn extends AnyAsyncFunction

TSelected

TSelected = { }

Properties

state

readonly state: Signal<Readonly<TSelected>>;

Defined in: angular-pacer/src/async-rate-limiter/injectAsyncRateLimiter.ts:33

Reactive state signal that will be updated when the async rate limiter state changes

Use this instead of rateLimiter.store.state


store

readonly store: Store<Readonly<AsyncRateLimiterState<TFn>>>;

Defined in: angular-pacer/src/async-rate-limiter/injectAsyncRateLimiter.ts:38

Deprecated

Use rateLimiter.state instead of rateLimiter.store.state if you want to read reactive state. The state on the store object is not reactive in Angular signals.