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
Theo Sun
5.18.0
async predicate
AsyncUtils.map, mapping values with async iteratee functions
Theo Sun
5.18.0
Optional
iteratee: ArrayIteratee<T, Promise<R>>Optional
iteratee: RecordIteratee<T, Promise<R>>Optional
iteratee: anycreate a promise with timeout, if time is up but no result/error resolved by promise, will throw an error
5.14.0
the promise executor
the timeout in milliseconds, e.g. 10000 means 10 seconds, and default value is 60 seconds
AsyncUtils
Since
5.18.0