FrameWithCloseable

data class FrameWithCloseable(val frame: Frame, val onClosed: (FrameWithCloseable) -> Unit) : Closeable

Frame internal representation.

Constructors

Link copied to clipboard
constructor(frame: Frame, onClosed: (FrameWithCloseable) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
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.