k-closeable

Defines a `Closeable` interface for implementing resource management and cleanup operations, ensuring efficient handling of resources with a simple override method for closing.

JVM
Linux
JS
GitHub stars0
Authorsk-libs
Dependents0
LicenseMIT License
Creation datealmost 4 years ago

Last activityalmost 4 years ago
Latest release1.0.0 (almost 4 years ago)

= K-Closeable :source-highlighter: highlightjs :lib-version: 1.0.0

image:https://img.shields.io/github/license/k-libs/k-closeable[] image:https://img.shields.io/badge/docs-dokka-brightgreen[link="https://k-libs.github.io/k-closeable/dokka/1.0.0/closeable/io.klibs.util/index.html"] image:https://img.shields.io/maven-central/v/io.k-libs/closeable[Maven Central]

Just a Closeable interface definition in Kotlin.

== Import

.build.gradle.kts [source, kotlin, subs="verbatim,attributes"]

implementation("io.k-libs:closeable:{lib-version}")

== Usage

[source,kotlin]

class MyResource : Closeable { override fun close() { println("I've been closed!") } }

JVM
Linux
JS
GitHub stars0
Authorsk-libs
Dependents0
LicenseMIT License
Creation datealmost 4 years ago

Last activityalmost 4 years ago
Latest release1.0.0 (almost 4 years ago)

= K-Closeable :source-highlighter: highlightjs :lib-version: 1.0.0

image:https://img.shields.io/github/license/k-libs/k-closeable[] image:https://img.shields.io/badge/docs-dokka-brightgreen[link="https://k-libs.github.io/k-closeable/dokka/1.0.0/closeable/io.klibs.util/index.html"] image:https://img.shields.io/maven-central/v/io.k-libs/closeable[Maven Central]

Just a Closeable interface definition in Kotlin.

== Import

.build.gradle.kts [source, kotlin, subs="verbatim,attributes"]

implementation("io.k-libs:closeable:{lib-version}")

== Usage

[source,kotlin]

class MyResource : Closeable { override fun close() { println("I've been closed!") } }