From: Chris Duncan Date: Tue, 3 Dec 2024 21:01:04 +0000 (-0800) Subject: Create pool method to clear workers from memory. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=dd9a4adba60031687a0f639827b3713c6ef6494a;p=libnemo.git Create pool method to clear workers from memory. --- diff --git a/src/lib/pool.ts b/src/lib/pool.ts index 32c7c79..5cafabd 100644 --- a/src/lib/pool.ts +++ b/src/lib/pool.ts @@ -102,4 +102,8 @@ export class Pool { } }) } + + dismiss (): void { + URL.revokeObjectURL(this.#url) + } }