Package-level declarations

Types

Link copied to clipboard
interface Closeable

Represents a resource or entity that can be closed to release any associated resources.

Properties

Link copied to clipboard
expect val Dispatchers.SuitableForIO: CoroutineDispatcher
actual val Dispatchers.SuitableForIO: CoroutineDispatcher
actual val Dispatchers.SuitableForIO: CoroutineDispatcher

Functions

Link copied to clipboard
inline suspend fun <Type : Closeable, Return> Type.use(action: suspend (Type) -> Return): Return

Executes the given action block on this Closeable resource and ensures that the resource is closed after the block execution, whether it completes normally or with an exception.