use

inline fun <T> Parcel.use(block: (Parcel) -> T): T(source)

Executes the given block function on Parcel resource and then Parcel.recycle.

Return

the result of block function invoked on Parcel resource.

Parameters

block

a function to process this Parcel resource.