Closeable


Known direct subclasses
ReadScope

The scope used for a read transaction.

StorageConnection

StorageConnection provides a way to read and write a particular type of data.

Known indirect subclasses
WriteScope

The scope used for a write transaction.


Datastore common version of java.io.Closeable

Summary

Public functions

Unit

Closes the specified resource.

Cmn

Extension functions

inline R
<T : Closeable, R : Any?> T.use(block: (T) -> R)

Ensures a Closeable object has its close() method called at the end of the supplied block.

Cmn

Public functions

close

fun close(): Unit

Closes the specified resource.

Extension functions

inline fun <T : Closeable, R : Any?> T.use(block: (T) -> R): R

Ensures a Closeable object has its close() method called at the end of the supplied block.

Throws
Throwable

any exceptions thrown in the block will propagate through this method.