Refactor codebase

This commit is contained in:
Aaron Smith 2023-08-22 15:50:03 +01:00
parent 07ae542e28
commit a3f03fd067
15 changed files with 228 additions and 128 deletions

View file

@ -6,10 +6,14 @@ local refs = graph.refs
local function untrack<T>(source: () -> T): T
local initial = #refs
local value = source()
-- remove any references made since `untrack()` was called
for i = initial, #refs do
refs[i] = nil
end
return value
end