File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 60
60
@return boolean
61
61
Returns true if the given class is a Janitor, if not it returns false.
62
62
]=]
63
-
64
63
function Janitor .isJanitor (value : table ? ): boolean
65
64
return type (value ) == " table" and value .ClassName == " Janitor"
66
65
end
67
66
68
67
--[=[
69
68
@within Janitor
70
69
@since 0.11
71
- @param task: any
70
+ @param task any
72
71
@method Give
73
72
@return nil
74
73
128
127
```
129
128
:::
130
129
]=]
131
-
132
130
function Janitor :Give (task )
133
131
local function handleTask (subtask : any )
134
132
assert (typeof (task ) ~= " boolean" , " Task cannot be a boolean" )
162
160
163
161
Calls for the Janitor to cleanup up all the tasks it was given.
164
162
]=]
165
- function Janitor :Cleanup (taskTable : table ? )
163
+ function Janitor :Cleanup ()
166
164
local tasks = taskTable or self ._tasks
167
165
168
166
-- Influenced by Quenty's destructer implementation
You can’t perform that action at this time.
0 commit comments