]> zoso.dev Git - libnemo.git/commitdiff
Create pool method to clear workers from memory.
authorChris Duncan <chris@zoso.dev>
Tue, 3 Dec 2024 21:01:04 +0000 (13:01 -0800)
committerChris Duncan <chris@zoso.dev>
Tue, 3 Dec 2024 21:01:04 +0000 (13:01 -0800)
src/lib/pool.ts

index 32c7c790057628934aeb1405fd7ce6c0fa3768c0..5cafabd4c2b2a2756e9d001780e0fd50efdcd24b 100644 (file)
@@ -102,4 +102,8 @@ export class Pool {
                        }
                })
        }
+
+       dismiss (): void {
+               URL.revokeObjectURL(this.#url)
+       }
 }