kotlin / 1.9 / api / latest / jvm / stdlib / kotlin / -auto-closeable / index.html

AutoCloseable

Platform and version requirements: JS (1.8), Native (1.8)
@ExperimentalStdlibApi interface AutoCloseable

A resource that can be closed or released.

Functions

Platform and version requirements: JS (1.0), Native (1.0)

close

Closes this resource.

abstract fun close()

© 2010–2023 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-auto-closeable/index.html