Skip to content

Commit 5b62191

Browse files
authored
s/parallel/concurrent/g
1 parent 7766850 commit 5b62191

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A proposal for several interfaces that will help with general usage and
44
consumption of async iterators in ECMAScript.
55

6-
This proposal was split out from [proposal-iterator-helpers](https://github.com/tc39/proposal-iterator-helpers) to resolve design questions related to parallelism, which are not relevant to sync helpers. Many design questions (including choice of methods) were discussed and decided in that respository, and its readme should be read first.
6+
This proposal was split out from [proposal-iterator-helpers](https://github.com/tc39/proposal-iterator-helpers) to resolve design questions related to concurrency (see below), which are not relevant to sync helpers. Many design questions (including choice of methods) were discussed and decided in that respository, and its readme should be read first.
77

88
## Status
99

@@ -34,9 +34,9 @@ This proposal contains the following methods:
3434

3535
See [proposal-iterator-helpers](https://github.com/tc39/proposal-iterator-helpers) for motivation and additional high-level descriptions for these methods.
3636

37-
## Parallelism
37+
## Concurrency
3838

39-
In the iterator-producing methods (`.map`, `.filter`, `.take`, `.drop`, and `.flatMap`), async helpers have the opportunity to support _parallelism_. For example, in the following code:
39+
In the iterator-producing methods (`.map`, `.filter`, `.take`, `.drop`, and `.flatMap`), async helpers have the opportunity to support _concurrency_. For example, in the following code:
4040

4141
```js
4242
asyncIteratorOfUrls
@@ -48,11 +48,11 @@ await Promise.all([
4848
])
4949
```
5050

51-
there could be two calls to `fetch` running at once. For this to work, the helpers have to be explicitly designed to support this. The original design of this proposal instead implemented the helpers as essentially async generators, which buffer calls to `.next` rather than allowing multiple calls to have simulaneous effects.
51+
there could be two calls to `fetch` running at once. For this to work, the helpers have to be explicitly designed to support this. The original design of this proposal instead implemented the helpers as essentially async generators, which buffer calls to `.next` rather than allowing multiple calls to have simultaneous effects.
5252

5353
This proposal is being revised to support at least the above use case. The exact details of what that looks like for each helper are not yet decided.
5454

55-
### How can I access the new intrinsics?
55+
## How can I access the new intrinsics?
5656

5757
This proposal introduces two new intrisic objects, in addition to the two added in the sync proposal. They can be accessed as follows:
5858

0 commit comments

Comments
 (0)