use

inline fun <R> TypedArray.use(block: (TypedArray) -> R): R(source)

Executes the given block function on this TypedArray and then recycles it.

See also