Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ICloseable

interface ICloseable
Extends IStandard An interface used by handles that may be explicitly, or implicitly closed. This should be automatically called in three scenrios:
  • Automatically by a destructor
  • Explicitly by the developer
  • Implicitly in response to an underlying entity becoming unavailable.

Methods

close()

void close()
Closes the resource, relinquishing any underlying resources. This method must be infallible and idempotent.
Last modified on October 29, 2026