@turing6/maid

2.1.1 • Public • Published

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

/@turing6/maid/

    Package Sidebar

    Install

    npm i @turing6/maid

    Weekly Downloads

    10

    Version

    2.1.1

    License

    MPL-2.0

    Unpacked Size

    3.46 kB

    Total Files

    3

    Last publish

    Collaborators

    • turing6