Update init.luau

This commit is contained in:
xArshy 2024-04-02 12:32:16 +04:00 committed by GitHub
parent ad0cc31ea7
commit 32fd45e010
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ function ClientProcess.insertRequest(Identifier: string, timeout: number, ...: a
local cancel = task.delay(timeout, function() local cancel = task.delay(timeout, function()
task.spawn(yieldThread, nil) task.spawn(yieldThread, nil)
end) end)
table.insert(clientRequestQueue[Identifier], { tostring(Key()), function(...: any) table.insert(clientRequestQueue[Identifier], { Key(), function(...: any)
if (os.clock() - start) > timeout then return end if (os.clock() - start) > timeout then return end
task.cancel(cancel) task.cancel(cancel)
task.spawn(yieldThread, ...) task.spawn(yieldThread, ...)