make function retry-able
maxRetryCount is 3, it will run 3 times at most (include the first one), and return the final error.
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