Forest Logo
search
package_2

retry-with-delay

By @chipioindustries

Roblox

Mirrored from Wally

retry-with-delay

Utility function for pcalling and retrying a function multiple times.

local success, result = retryWithDelay(
	getPlayerData, -- function to call
	3, -- maximum retries
	1, -- seconds between each attempt
	234534 -- argument(s) to be passed to the function
)

if success then
	print(result)
else
	print("It didn't work: " .. result)
end

Package Details

Install command (Click to copy)


Version

1.0.1

License

MPL-2.0

warning

Usable with conditions

infoFile-level copyleft: if you modify this package's own source files, those modified files must be made available under MPL-2.0. Using it unmodified in a closed-source game is fine.

infoLicense identified from the packaged LICENSE file; the manifest declared none.

Automated license review — not legal advice.