map each…→…in|of_§in parallel«_-way»through_

Definitions:

literal phrase ⇒ token, expression phrase ⇒ map, expression phrase ⇒ natural number?, block phrase ⇒ []→⊤
Source: /avail/Avail/Foundation/Concurrency
Categories: Concurrency, Control Structures, Loops, Collections, Maps, Transformers
Concurrently apply transformer to each consecutive element of aMap, collecting the results into a new map (and preserving ordering of the transformed elements). Answer this map.
Position Name Type Description
Parameters
1 elementPhrase literal phrase ⇒ token A literal phrase holding a synthetic literal token whose value is the name of the loop variable. The generated loop variable is given the strongest possible type based on the type union of the leading types and default type of aMap.
2 aMap expression phrase ⇒ map
3 optionalLimit expression phrase ⇒ natural number? If specified, then the maximum number of worker fiber s permitted to run in parallel. If not specified, then permit default maximum worker fibers worker fiber s to run in parallel.
4 action block phrase ⇒ []→⊤ A function that includes 1) an element of the map and 2) the index of that element.
Returns
Raises
worker exception If any of the forked workers raise an exception.