useAndUnwrap

inline fun <T> FrameWithCloseable.useAndUnwrap(block: (Frame) -> T): <Error class: unknown class>

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