← Docs
kotlin-stdlib / kotlin / AutoCloseable

AutoCloseable

Common
Native
1.8
@ExperimentalStdlibApi interface AutoCloseable
(Common source) (Native source)
JS
1.8
interface AutoCloseable
(source)

A resource that can be closed or released.

Functions

Common
JS
Native
1.0

close

Closes this resource.

abstract fun close ( )
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .