complete

fun complete(lease: LeaseId, actualCost: Long): LeaseOutcome

Close lease and charge it actualCost, as LocalHeddle.complete does, with the pool's waiting leaves as the waiting set. A lease the pool counts frees its slot, and the next waiter is granted it. A lease the engine does not hold answers LeaseOutcome.Unknown or LeaseOutcome.Stale and changes nothing.

Throws