Orphan

data class Orphan(val lease: Lease, val elapsed: Long)

An open lease whose work is no longer running, and how long it ran.

Constructors

Link copied to clipboard
constructor(lease: Lease, elapsed: Long)

Properties

Link copied to clipboard

The documented settlement, min(elapsed, granted): charge the time it ran, but no more than it was granted, since a dead piece of work's overrun cannot be verified. A caller with evidence of a longer run may LocalHeddle.complete it at more.

Link copied to clipboard

now − lease.startedAt in the cost unit, or 0 when the caller's clock went back, say across a restart.

Link copied to clipboard

What the engine handed this lease and it kept: its reservation plus every extension, less every LocalHeddle.shrink, Lease.reserved. A shrunk orphan's defaultSettlement is so capped at its shrunk size, 0 for one shrunk whole.

Link copied to clipboard