mimir/micleaner

A simple Luau resource cleanup utility inspired by Trove

MiCleaner

MiCleaner is a lightweight cleanup utility for Luau.

It is inspired by libraries like Trove and aims to provide a simple way to manage and clean up resources such as connections, instances, threads, and custom objects.

Features

  • Add and automatically clean up objects
  • Manage connections easily
  • Support custom cleanup methods
  • Create and manage child cleaners
  • Construct objects and track them automatically
  • Attach cleanup to instances
  • Supports custom signal implementations

Installation

local MiCleaner = require(path.To.MiCleaner)