close

open override fun close()

Closes the object and releases all the resources.

Note: After closing, any function call to this object will throw an IllegalStateException.