| CARVIEW |
Select Language
HTTP/2 301
server: nginx
date: Sat, 27 Dec 2025 10:31:55 GMT
content-type: text/html
content-length: 162
location: /api-reference/disposable/
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
strict-transport-security: max-age=31536000;
HTTP/2 200
server: nginx
date: Sat, 27 Dec 2025 10:31:55 GMT
content-type: text/html
last-modified: Tue, 26 Aug 2025 18:14:18 GMT
vary: Accept-Encoding
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
content-encoding: gzip
strict-transport-security: max-age=31536000;
Disposable - Nova
RESULTS:
No Results
Building Extensions
Contributing Languages
JavaScript API Reference
Disposable
Objects which can be torn down
A Disposable is any object that can be “disposed of” to relinquish its resources or cancel its task. The disposable interface is adopted by several objects returned from standard API methods. To conform to the disposable interface, an object needs only to implement a dispose() method.
The Disposable interface is not subclassable.
Class Methods
isDisposable(object)
Returns true if the argument provided is a disposable object which responds to dispose().
Methods
dispose()
Relinquishes the object’s resources, which may include stopping a listener, cancelling a task, or some other “event”. Calling dispose() multiple times on an object is allowed, but will not affect the object after the first call.