ModelLease

A borrowed resident model. While at least one lease is open the model is never evicted. Closing a lease twice is a no-op.

Properties

Link copied to clipboard
abstract val key: String

Cache key.

Link copied to clipboard
abstract val resource: T

The loaded model (an engine, for example).

Functions

Link copied to clipboard
expect abstract fun close()