Compare commits
No commits in common. "develop" and "main" have entirely different histories.
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ export async function map_concurrent<In, Out>(
|
||||||
map_fn: (input: In) => Promise<Out | null>,
|
map_fn: (input: In) => Promise<Out | null>,
|
||||||
): Promise<Map<In, Out | null>> {
|
): Promise<Map<In, Out | null>> {
|
||||||
// apply map_fn to inputs
|
// apply map_fn to inputs
|
||||||
const outputs = await Promise.all([...inputs].map(map_fn));
|
const outputs = await Promise.all([...inputs].map((input) => map_fn(input)));
|
||||||
|
|
||||||
// create map object
|
// create map object
|
||||||
return new Map<In, Out | null>(
|
return new Map<In, Out | null>(
|
||||||
|
|
Loading…
Reference in a new issue