baml.sys.collect_garbage
Forces a full garbage collection and runs queued `cleanup()` finalizers before returning. Intended for deterministic tests and runtime diagnostics; production code should normally let the runtime schedule collections automatically.
Reference version
Signature
function baml.sys.collect_garbage() -> null throws never
Forces a full garbage collection and runs queued cleanup() finalizers before returning.
Intended for deterministic tests and runtime diagnostics; production code should normally
let the runtime schedule collections automatically.
Source:<builtin>/baml/ns_sys/sys.bamlbytes 7557–7630