refactor(imports/streaming): use coroutine.isyieldable

This commit is contained in:
Linden
2023-05-25 14:56:15 +10:00
parent 9efcde0351
commit a8ab102bae
7 changed files with 8 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ function lib.requestWeaponAsset(weaponType, timeout, weaponResourceFlags, extraW
RequestWeaponAsset(weaponType, weaponResourceFlags or 31, extraWeaponComponentFlags or 0)
if coroutine.running() then
if coroutine.isyieldable() then
timeout = tonumber(timeout) or 500
for _ = 1, timeout do