AsyncUtils: { allSettled: (<A>(collection: A) => Promise<{ -readonly [K in keyof A]: SettleResult<Awaited<A[K]>> }>); any: (<T>(iterable: Iterable<Promise<T>, any, any>) => Promise<T>); filter: (<T>(collection: T[],
predicate: AsyncFunction<[T, any, any], boolean>) => Promise<T[]>); LazyPromise: typeof LazyPromise; map: { <T>(collection: T): Promise<Tuple<T>>; <T, R>(collection: ArrayLike<T>,
iteratee?: ArrayIteratee<T, Promise<R>>): Promise<R[]>; <T, R>(collection: Record<string, T>,
iteratee?: RecordIteratee<T, Promise<R>>): Promise<R[]>; (collection: any,
iteratee?: any): Promise<any[]>; }; timeout: (<T>(executor: PromiseExecutor<T>,
timeout?: number) => Promise<T>); } = ... Type declaration
allSettled: (<A>(collection: A) => Promise<{
-readonly [K in keyof A]: SettleResult<Awaited<A[K]>>
}>)
- <A>(collection): Promise<{
-readonly [K in keyof A]: SettleResult<Awaited<A[K]>>
}> Type Parameters
- A extends [] | readonly unknown[]
Returns Promise<{
-readonly [K in keyof A]: SettleResult<Awaited<A[K]>>
}>
any: (<T>(iterable: Iterable<Promise<T>, any, any>) => Promise<T>)
- <T>(iterable): Promise<T>
Parameters
- iterable: Iterable<Promise<T>, any, any>
Returns Promise<T>
filter: (<T>(collection: T[], predicate: AsyncFunction<[T, any, any], boolean>) => Promise<T[]>)
- <T>(collection, predicate): Promise<T[]>
Returns Promise<T[]>
map: {
<T>(collection: T): Promise<Tuple<T>>;
<T, R>(collection: ArrayLike<T>, iteratee?: ArrayIteratee<T, Promise<R>>): Promise<R[]>;
<T, R>(collection: Record<string, T>, iteratee?: RecordIteratee<T, Promise<R>>): Promise<R[]>;
(collection: any, iteratee?: any): Promise<any[]>;
}
- <T>(collection): Promise<Tuple<T>>
Returns Promise<Tuple<T>>
- <T, R>(collection, iteratee?): Promise<R[]>
Parameters
- collection: ArrayLike<T>
Optional
iteratee: ArrayIteratee<T, Promise<R>>
Returns Promise<R[]>
- <T, R>(collection, iteratee?): Promise<R[]>
Parameters
- collection: Record<string, T>
Optional
iteratee: RecordIteratee<T, Promise<R>>
Returns Promise<R[]>
- (collection, iteratee?): Promise<any[]>
Parameters
- collection: any
Optional
iteratee: any
Returns Promise<any[]>
timeout: (<T>(executor: PromiseExecutor<T>, timeout?: number) => Promise<T>)
- <T>(executor, timeout?): Promise<T>
Parameters
- executor: PromiseExecutor<T>
- timeout: number = ...
Returns Promise<T>
AsyncUtils