Package org.mongodb.kbson.internal

Types

Link copied to clipboard
interface Closeable

A Closeable is a source or destination of data that can be closed.

Functions

Link copied to clipboard
inline fun <T : Closeable?, R> T.use(block: (T) -> R): R

Executes the given block function on this resource and then closes it down correctly whether an exception is thrown or not.