unitsLent

open override fun unitsLent(lender: Allocation, borrower: Allocation, amount: Int)(source)

Called when a preemption takes amount units of lender and lends them to borrower; lender keeps its allocation, but the units are the borrower's to use until the loan ends. The default does nothing.

Parameters

lender

the allocation the units are taken from

borrower

the allocation of the preemptor that takes them

amount

the number of units lent