Appearance
重试执行一个异步函数。
import { retry } from '@base-web-kits/base-tools-ts'; await retry( async () => { // 可能会失败的操作 }, { retries: 3 }, );
func (Function)
options (Object)
(Promise<any>)