Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/memory / / shouldPromote
Function: shouldPromote()
ts
function shouldPromote(
candidate,
policy,
nowMs): boolean;Defined in: packages/memory/src/consolidator/promotion.ts:92
The pure verdict: does this candidate clear every threshold at nowMs? No I/O, no clock reads.
Parameters
| Parameter | Type |
|---|---|
candidate | PromotionCandidate |
policy | ResolvedPromotionPolicy |
nowMs | number |
Returns
boolean