Add thread cleanup helper

This commit is contained in:
aaron 2024-11-28 01:00:11 +00:00
parent e60aa57ca2
commit caa9eaf733
3 changed files with 9 additions and 1 deletions

View file

@ -7,7 +7,7 @@ Queues a callback to run when a scope is reran or destroyed.
- **Type**
```luau
function cleanup(v: Function | Disconnectable | Destroyable)
function cleanup(v: Function | Disconnectable | Destroyable | thread)
type Function = () -> ()
type Destroyable = { destroy: () -> () }