Skip to content

Interface: CustomPoolStrategyNode<TItem> ​

Defined in: ast/custom-pool-strategy-node.ts:13

Passive AST node for user-supplied custom pool selector functions.

Stores the synchronous selector callback invoked by the runtime pool scheduler to choose a candidate.

Extends ​

Type Parameters ​

Type ParameterDefault typeDescription
TItemunknownPooled resource item type.

Properties ​

PropertyModifierTypeDescriptionOverridesDefined in
idreadonlystringUnique identifier of the strategy configuration.-ast/custom-pool-strategy-node.ts:17
selectFnreadonlyBivariantCallback<[candidates: readonly PoolCandidateState<TItem>[], ctx: PoolSelectionContext], TItem | undefined>Synchronous selector callback invoked to pick a candidate from the pool.-ast/custom-pool-strategy-node.ts:21
strategyKindreadonly"custom"Custom selector strategy kind.-ast/custom-pool-strategy-node.ts:19
typereadonly"harness:pool-strategy"Discriminant identifying a pool selection strategy node.ASTNode.typeast/custom-pool-strategy-node.ts:15

Released under the MIT License.