Issue Description
For a more descriptive title: This requests that functions that dont always yield due to a cache should be changed to CanYield.
This bug involves the deployed API dump with some of the functions. I put it here because I dont really know where to put it.
This documentation issue affects multiple APIs, including but not limited to
-
Player:GetRank/RoleInGroup()
-
(attempted to find more but see below)
(From further testing it appears MarketplaceService actually yields every time now, this is the only members, that I can find, that should be changed to CanYield)
As stated before, I dont really know where to put this since it’s an issue with the API dump.
You can test yield functions using this piece of code, if beep
is printed multiple times in a row, then the function only yielded a few times.
local h = true
coroutine.wrap(function()
while h do
print("boop")
task.wait()
end
end)()
for i = 1, 10 do
game.MarketplaceService:PlayerOwnsAsset(game.Players.LocalPlayer, 1818)
print("beep")
end
h = false
Issue Area: DevHub Content
Page URL: API Dump