2.1.1 • Published 2 years ago

@turing6/maid v2.1.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
2 years ago

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/maid

Usage

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()

2.1.1

2 years ago

2.0.2

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago