Skip to content

Commit 8dce0c9

Browse files
Add description for concrete/parallelChain
1 parent 1f04a4d commit 8dce0c9

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

EPICS.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,9 @@ We need to give a motivation for each exercise, as well as a concrete example of
9494
- [ ] Concrete - Concurrency Enqueue
9595
- [ ] Concrete - Concurrency Override
9696
- [ ] Concrete - Extracting Resolvers
97-
- [ ] Concrete - Parallel Chain
97+
- [x] Concrete - Parallel Chain
9898
- [ ] Concrete - Parallel Chunks
9999
- [ ] Concrete - Parallel Collect Errors
100-
- [ ] Concrete - Parallel Collect Errors
101100
- [ ] Concrete - Parallel Collect Retry
102101
- [ ] Concrete - Parallel Max Concurrency
103102
- [x] Concrete - Retry
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# Parallel Chain
22

3+
**Level: Beginner**
4+
5+
Sometimes we have asynchronous tasks that must be chained off one another, that is, each task depends on the completion of the previous one.
6+
7+
In this exercise we'll explore the idea of dealing with these asynchronous tasks chains, but in a scenario where we have multiple chains and they all must be carried out in parallel.
8+
9+
Each chain has three steps: `firstStep`, `secondStep` and `thirdStep`, where each step uses the data that is returned by the previous step.
10+
11+
You'll be implementing a function that receives a list of strings and from each element of this list, a chain is created.
12+
13+
## Requirements
14+
315
Implement a function that:
416

517
- Signature: `(list: Array<string>) => Promise<Array<string>>`
618
- For each element in `list`, calls `firstStep` with it, then calls `secondStep` with the result of the `firstStep` and `thirdStep` with the result of `secondStep`
7-
- Returns the list of results of `thirdStep`
19+
- Returns the list of results of `thirdStep` in the order they were called
820
- Calls should be made in parallel as much as possible

0 commit comments

Comments
 (0)