@rbxts/covenant 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/hooks.luau +3 -3
package/package.json
CHANGED
package/src/hooks.luau
CHANGED
|
@@ -328,10 +328,10 @@ local function createUseInterval(_param)
|
|
|
328
328
|
end
|
|
329
329
|
local _discriminator_2 = discriminator
|
|
330
330
|
local nextClock = nextClocks[_discriminator_2]
|
|
331
|
-
if nextClock
|
|
331
|
+
if nextClock > os.clock() then
|
|
332
332
|
local _discriminator_3 = discriminator
|
|
333
333
|
caches[_discriminator_3] = false
|
|
334
|
-
return
|
|
334
|
+
return false
|
|
335
335
|
else
|
|
336
336
|
local _discriminator_3 = discriminator
|
|
337
337
|
local _arg1 = os.clock() + seconds
|
|
@@ -339,7 +339,7 @@ local function createUseInterval(_param)
|
|
|
339
339
|
task.delay(seconds, indicateUpdate)
|
|
340
340
|
local _discriminator_4 = discriminator
|
|
341
341
|
caches[_discriminator_4] = true
|
|
342
|
-
return
|
|
342
|
+
return true
|
|
343
343
|
end
|
|
344
344
|
end
|
|
345
345
|
end
|