own

fun <T : AutoCloseable> own(resource: T): T

Transfers resource ownership to this client. Owned resources are closed in reverse order before the transport. Most applications use the higher-level account factories instead.