retry-func (npm): wrap a function to support retry
Keywords: retry