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
suspend fun String.knioReader(): KReader
Link copied to clipboard
Link copied to clipboard
inline suspend fun <T : KAutoCloseable, R> T.use(crossinline block: suspend (T) -> R): R

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.