@turing6/maid
v2.1.1
Published
A simple Maid module
Readme
Maid
A class that handles items to help with garbage collection.
It calls functions, disconnects events and calls :Destroy() or :Cancel() on tables/instances.
Installation
npm install @turing6/maidUsage
Create a Maid: local maid = Maid.new()
Add an object:
local object = workspace.coolpart
maid:GiveTask(object)GiveTask returns the object: local newPart = maid:GiveTask(Instance.new("Part"))
Add multiple objects: maid:GiveTasks({object, object2, Instance.new("Part")})
Cleanup the Maid: maid:Destroy() or maid:DoCleaning()
