Compare commits

..

No commits in common. "develop" and "main" have entirely different histories.

View file

@ -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>(