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 Parameter | Default type | Description |
|---|---|---|
TItem | unknown | Pooled resource item type. |
Properties
| Property | Modifier | Type | Description | Overrides | Defined in |
|---|---|---|---|---|---|
id | readonly | string | Unique identifier of the strategy configuration. | - | ast/custom-pool-strategy-node.ts:17 |
selectFn | readonly | BivariantCallback<[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 |
strategyKind | readonly | "custom" | Custom selector strategy kind. | - | ast/custom-pool-strategy-node.ts:19 |
type | readonly | "harness:pool-strategy" | Discriminant identifying a pool selection strategy node. | ASTNode.type | ast/custom-pool-strategy-node.ts:15 |