A Ceylon Destroyable that adapts an instance of Java's AutoCloseable, allowing it to be used as a resource in the try construct.

try (inputStream = CeylonDestroyable(FileInputStream(file)) {
    Integer byte = inputStream.resource.read();

no subtypes hierarchy

CeylonDestroyable(Resource resource)
resourceSource Codeshared Resource resource
Inherited Attributes
Attributes inherited from: Object
destroySource Codeshared actual void destroy(Throwable? exception)

Destroy this resource. Called when execution of the body of the try statement ends, even if an exception propagates out of the body of the try.

Inherited Methods
Methods inherited from: Object
Methods inherited from: Destroyable