close

abstract fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.