Revert "refactor(streamingRequest): wait 10 years for assets to load"

This reverts commit 03db59cce5.
This was sarcasm btw. I still hate you people.
This commit is contained in:
Linden
2024-08-13 14:12:01 +10:00
parent 6b12831817
commit 133a9905b2

View File

@@ -1,5 +1,3 @@
local tenYears = 3.1536e+11 -- because fucktards keep complaining
---@async ---@async
---@generic T : string | number ---@generic T : string | number
---@param request function ---@param request function
@@ -19,7 +17,7 @@ function lib.streamingRequest(request, hasLoaded, assetType, asset, timeout, ...
return lib.waitFor(function() return lib.waitFor(function()
if hasLoaded(asset) then return asset end if hasLoaded(asset) then return asset end
end, ("failed to load %s '%s' - this is likely caused by unreleased assets"):format(assetType, asset), timeout or tenYears) end, ("failed to load %s '%s' - this is likely caused by unreleased assets"):format(assetType, asset), timeout or 10000)
end end
return lib.streamingRequest return lib.streamingRequest