core-ktx / androidx.content.res / android.content.res.TypedArray / use

use

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

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

See Also

kotlin.io.use