make function retry-able
e.g. if maxRetryCount is 3, it will run 3 times at most (include the first one), and return the final error.
maxRetryCount
async function, return promise
the maximum number of times a runner should retry, default is 3
(async function required, for sync function, this parameter will not be applied) the wait milliseconds before retry, default is zero
5.14.0
make function retry-able
e.g. if
maxRetryCount
is 3, it will run 3 times at most (include the first one), and return the final error.