Skip to content

Commit

Permalink
[Fix] Links on High-level concurrency page going to the old docs. (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobot0 authored May 19, 2023
1 parent a8d28b0 commit c3806ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/docs/learn/coroutines/parallel.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ tells how many computations should be dispatched in parallel.

### Flows

The [`parMap`](https://arrow-kt.io/docs/apidocs/arrow-fx-coroutines/arrow.fx.coroutines/par-map.html)
The [`parMap`](https://apidocs.arrow-kt.io/arrow-fx-coroutines/arrow.fx.coroutines/par-map.html)
function is also provided for [`Flow`](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/).
If the concurrency factor is more than 1, then inner flows are collected by this operator concurrently.
When this factor is one, calling `parMap` is identical to calling `map` on the flow.

Additional performance can be gained if we don't impose the same ordering on
the mapping output as the one in the source flow. Just call [`parMapUnordered`](https://arrow-kt.io/docs/apidocs/arrow-fx-coroutines/arrow.fx.coroutines/par-map-unordered.html)
the mapping output as the one in the source flow. Just call [`parMapUnordered`](https://apidocs.arrow-kt.io/arrow-fx-coroutines/arrow.fx.coroutines/par-map-unordered.html)
in that case. As with `parMap`, the concurrency factor defines how many
computations should be executed concurrently at most.

Expand Down

0 comments on commit c3806ce

Please sign in to comment.