Abstract Class: UsingDisposable

February 16, 2026 ยท View on GitHub

quickjs-emscripten


quickjs-emscripten / quickjs-emscripten-core / UsingDisposable

Abstract Class: UsingDisposable

Defined in: packages/quickjs-emscripten-core/src/lifetime.ts:34

Base abstract class that helps implement Disposable by providing a default implementation of Symbol.dispose.

Contents

Extended by

Implements

Constructors

Constructor

new UsingDisposable(): UsingDisposable

Returns

UsingDisposable

Properties

alive

abstract readonly alive: boolean

Defined in: packages/quickjs-emscripten-core/src/lifetime.ts:39

Returns

true if the object is alive

Returns

false after the object has been disposed

Implementation of

Disposable.alive

Methods

[dispose]()

[dispose](): void

Defined in: packages/quickjs-emscripten-core/src/lifetime.ts:47

Just calls the standard .dispose() method of this class.

Returns

void

Implementation of

Disposable.[dispose]


dispose()

abstract dispose(): void

Defined in: packages/quickjs-emscripten-core/src/lifetime.ts:43

Dispose of the underlying resources used by this object.

Returns

void

Implementation of

Disposable.dispose