📄️ Add
Adds a resource to the Vault so it can be cleaned later.
📄️ Remove
Removes a resource from the Vault without cleaning it. Returns true if the resource was successfully removed, false otherwise.
📄️ Clean/Destroy
Cleans all resources managed by the Vault and prepares it for garbage collection.
📄️ Connect
Creates a signal connection and automatically adds it to the Vault.
📄️ Once
Creates a one-time signal connection that auto-disconnects after first fire and is managed by the Vault.
📄️ BindToRenderStep
Binds a function to a render step and automatically unbinds it when the vault is cleaned.
📄️ BindToHeartbeat
Connects to RunService.Heartbeat and automatically manages the connection.
📄️ BindToStepped
Connects to RunService.Stepped and automatically manages the connection.
📄️ AttachToInstance
Automatically cleans the vault when the given Instance is destroyed.
📄️ Construct
Creates an instance of a class and automatically adds it to the Vault.
📄️ Extend
Creates a child Vault that will be automatically cleaned when the parent is cleaned.
📄️ Import
Imports another vault so it gets cleaned when this vault is cleaned.
📄️ Clone
Clones an Instance and automatically adds the clone to the Vault.
📄️ Defer
Creates a temporary scope that cleans up automatically after the callback executes.
📄️ DeferAsync
Creates a temporary scope for async operations that cleans up automatically after all promises resolve.
📄️ Contains
Checks if an object is currently being tracked by the Vault.
📄️ Size
Returns the number of resources currently being tracked by the Vault.
📄️ IsCleaned
Checks if the Vault has already been cleaned.
📄️ GetName
Returns the optional name assigned to the Vault.
📄️ GetEntries
Returns a read-only array of all resources currently tracked by the Vault.
📄️ GetChildren
Returns an array of all child vaults attached to this Vault.
📄️ GetParent
Returns the parent vault of this Vault, if any.