0.1.24 • Published 2 months ago

@trenskow/parallel v0.1.24

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
2 months ago

@trenskow/parallel

A small library for doing async tasks in parallel.

Usage

Usage is pretty simple – see an example below.

import parallel from '@trenskow/parallel';

const result = await parallel([
    myFirstPromise,
    mySecondPromise,
    ...
]);

Compared to Promise.all

On the surface this looks a lot like Promise.all, but there is one crucial difference.

Where Promise.all settles fast, meaning if a promise is rejected then Promise.all will reject immediate – leaving the other promises to be potentially resolved.

This library is for when you want the opposite behavior, when you want all promises to be settled before the entire thing is resolved or rejected.

LICENSE

See license in LICENSE

0.1.22

2 months ago

0.1.23

2 months ago

0.1.24

2 months ago

0.1.20

3 months ago

0.1.21

3 months ago

0.1.19

3 months ago

0.1.12

4 months ago

0.1.13

4 months ago

0.1.14

4 months ago

0.1.15

4 months ago

0.1.16

4 months ago

0.1.17

4 months ago

0.1.18

4 months ago

0.1.10

7 months ago

0.1.11

7 months ago

0.1.8

8 months ago

0.1.7

8 months ago

0.1.9

7 months ago

0.1.4

10 months ago

0.1.6

9 months ago

0.1.5

10 months ago

0.1.2

1 year ago

0.1.3

1 year ago

0.0.10

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago