function generateSimpleAsyncTask<T>(func): (...args) => Promise<ReturnType<T>>
创建简单的异步任务
T
args
any
func
Function
Promise<ReturnType<T>>
Promise
ReturnType
packages/utils/src/simple-promise-tools.ts:5