Const
Promise.allSettled() implementation
Theo Sun
5.18.0
Promise.any implementation
just ref the MDN document
Promise.any()
takes an iterable of Promise objects and, as soon as one of the promises in the iterable fulfils, returns a single promise that resolves with the value from that promise. If no promises in the iterable fulfil (if all of the given promises are rejected), then throw the array of errors
5.7.0
Error list
AsyncUtils.filter, filter values by async predicate function
async predicate
Theo Sun
5.18.0
AsyncUtils.map, mapping values with async iteratee functions
Theo Sun
5.18.0
Optional
iteratee: ArrayIteratee<T, Promise<R>>Optional
Optional
iteratee: RecordIteratee<T, Promise<R>>Optional
Optional
iteratee: anyOptional
create a promise with timeout, if time is up but no result/error resolved by promise, will throw an error
the promise executor
the timeout in milliseconds, e.g. 10000 means 10 seconds, and default value is 60 seconds
5.14.0
5.18.0
AsyncUtils