mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Add thread cleanup helper
This commit is contained in:
parent
e60aa57ca2
commit
caa9eaf733
3 changed files with 9 additions and 1 deletions
|
|
@ -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: () -> () }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue