useAndUnwrap

inline fun <T> FrameWithCloseable.useAndUnwrap(block: (Frame) -> T): T(source)

Uses the resource and unwraps the Frame to pass it to the given block.