import { Freeables } from "https://dotland.deno.dev/x/jucid@1.0.0-alpha.1/mod.ts";
This class makes it easier to free large sets of memory. It can be used like this:
const bucket: FreeableBucket = [];
try {
const rustObject = C.some_rust_object();
bucket.push(rustObject);
...
} finally {
Freeables.free(...bucket);
}
Static Methods
free(...bucket: FreeableBucket)