![JAR search and dependency download from the Maven repository](/logo.png)
io.p8e.client.Extensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of p8e-sdk Show documentation
Show all versions of p8e-sdk Show documentation
A collection of services and libraries that iteract and run Provenance Java based contracts.
package io.p8e.client
import kotlin.concurrent.thread
fun shutdownHook(fn: () -> Unit) {
Runtime.getRuntime().addShutdownHook(thread(start = false, block = fn))
}
internal fun T.closeOnShutdown() = apply { shutdownHook { close() } }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy