Class RoundRobin<T, Token, A>
Type Parameters
- T
- Token = string | symbol | { [key: string]: any }
- A extends any[] = any[]
Properties
Methods
Static
create
create< T, Token = string | symbol | { [key: string]: any }, A extends any[] = any[],>( tokens: Token[], factory: (token: Token) => (...args: A) => T,): (...args: A) => T Type Parameters
- T
- Token = string | symbol | { [key: string]: any }
- A extends any[] = any[]
Returns (...args: A) => T
A generic RoundRobin implementation that cycles through token-based instance creators.