From dd9a4adba60031687a0f639827b3713c6ef6494a Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 3 Dec 2024 13:01:04 -0800 Subject: [PATCH] Create pool method to clear workers from memory. --- src/lib/pool.ts | 4 ++++ 1 file changed, 4 insertions(+) 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) + } } -- 2.34.1