Skip to main content

dispose

Disposes of an UpscalerJS instance and clears up any used memory. Ensure any active execution events have first been aborted before disposing of the model.

Example

const upscaler = new Upscaler();
upscaler.dispose().then(() => {
console.log("All cleaned up!");
})
Defined in upscaler.ts:230

Returns

Promise<void>