Package-level declarations
Types
Link copied to clipboard
interface KAutoCloseable
An interface representing a closeable resource that can be closed asynchronously.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Executes the given block function on this resource and then closes it.
inline suspend fun <T : KAutoCloseable, R> T.use(dispatcher: CoroutineDispatcher, crossinline block: suspend (T) -> R): R
Executes the given block function on this resource within the provided dispatcher context and then closes it.