refactor(client/progress): reduce Wait in progress queue

This commit is contained in:
Linden
2023-05-05 14:55:03 +10:00
parent 878763867a
commit 89c0668985
+2 -2
View File
@@ -159,7 +159,7 @@ end
---@param data ProgressProps
---@return boolean?
function lib.progressBar(data)
while progress ~= nil do Wait(100) end
while progress ~= nil do Wait(0) end
if not interruptProgress(data) then
SendNUIMessage({
@@ -177,7 +177,7 @@ end
---@param data ProgressProps
---@return boolean?
function lib.progressCircle(data)
while progress ~= nil do Wait(100) end
while progress ~= nil do Wait(0) end
if not interruptProgress(data) then
SendNUIMessage({