mirror of
https://github.com/AmberGraceRblx/luau-promise.git
synced 2025-04-24 15:50:01 +00:00
parent
cab1c5ec8b
commit
fa7a0d67ac
1 changed files with 2 additions and 0 deletions
|
@ -1929,6 +1929,7 @@ end
|
||||||
@param callback (...: P) -> Promise<T>
|
@param callback (...: P) -> Promise<T>
|
||||||
@param times number
|
@param times number
|
||||||
@param ...? P
|
@param ...? P
|
||||||
|
@return Promise<T>
|
||||||
]=]
|
]=]
|
||||||
function Promise.retry(callback, times, ...)
|
function Promise.retry(callback, times, ...)
|
||||||
assert(isCallable(callback), "Parameter #1 to Promise.retry must be a function")
|
assert(isCallable(callback), "Parameter #1 to Promise.retry must be a function")
|
||||||
|
@ -1956,6 +1957,7 @@ end
|
||||||
@param times number
|
@param times number
|
||||||
@param seconds number
|
@param seconds number
|
||||||
@param ...? P
|
@param ...? P
|
||||||
|
@return Promise<T>
|
||||||
]=]
|
]=]
|
||||||
function Promise.retryWithDelay(callback, times, seconds, ...)
|
function Promise.retryWithDelay(callback, times, seconds, ...)
|
||||||
assert(isCallable(callback), "Parameter #1 to Promise.retry must be a function")
|
assert(isCallable(callback), "Parameter #1 to Promise.retry must be a function")
|
||||||
|
|
Loading…
Reference in a new issue