pin

fun pin(fileName: String): AutoCloseable(source)

Pins fileName so it is never evicted while the returned handle is open (for example while an engine has it loaded). Pins nest; closing a handle twice is a no-op.