KAutoCloseable

interface KAutoCloseable

An interface representing a closeable resource that can be closed asynchronously.

Similar to AutoCloseable, but with a suspendable close method.

See also

Inheritors

Functions

Link copied to clipboard
abstract suspend fun close()

Closes this resource, relinquishing any underlying resources.