virtualTime
fun virtualTime(ledger: EntitlementLedger, parent: GroupId, demand: (AttachmentId) -> Demand): Rational?
Deprecated
A Rational read sticks at the ceiling once nothing rebases (design §7.1); read virtualTimeWide(ledger, parent, demand), a VirtualTime, instead.
Replace with
virtualTimeWide(ledger, parent, demand)Content copied to clipboard
parent's current virtual time V in ledger — this allocator's front (design §7.2; issue #1688). null when parent has no active children in ledger, and null too when their weights fail weightsFitTheBudget, where no front can be computed and schedule answers AllocationOutcome.WeightBudget (#3353).
A diagnostic: it depends on demand and on this allocator's non-replicated wake clamps, so two peers legitimately read different values at the same instant.