暗色模式
作用同safeAwait
作为一个高阶函数使用
import { safeAwaitFn } from '@vill-v/async' const test= safeAwaitFn(async ()=>{ await Promise.reject() })
declare function safeAwaitFn(fn: (...args: any[]) => Promise<any>): (...args: any[]) => void;