use

inline fun <T> use(action: Xof.Reader<A>.() -> T): T(source)

Helper function which automatically invokes close once action completes.