3.2.5 • Published 2 months ago

@code-like-a-carpenter/parallel v3.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@code-like-a-carpenter/parallel

standard-readme compliant

Helpers for running async tasks in parallel

Table of Contents

Install

npm i @code-like-a-carpenter/parallel

Usage

import {parallelMap} from '@code-like-a-carpenter/parallel';

const result = await parallelMap([1, 2, 3], async (value) => {
    return value * 2;
});

Note that exceptions are reported via captureException from @code-like-a-carpenter/telemetry, but since parallelMap uses Promise.allSettled under the hood, they'll never be thrown. If you need to handle errors, you can either do so one at a time in you callback or you can iterate through the result and check for failures.

Maintainer

Ian Remmel

Contributing

Please see contributing guidelines at the project homepage.

License

MIT © Ian Remmel 2023 until at least now

3.2.5

2 months ago

3.2.4

2 months ago

3.2.3

2 months ago

3.2.2

3 months ago

3.2.1

3 months ago

3.2.0

3 months ago

3.1.0

3 months ago

3.0.0

4 months ago

2.1.0

6 months ago

1.7.1

9 months ago

2.0.0

6 months ago

1.5.3

1 year ago

1.7.0

12 months ago

1.6.0

12 months ago

1.5.2

1 year ago

1.5.1

1 year ago

1.2.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago