Skip to content

Commit

Permalink
docs: Bump readme for new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye committed Mar 27, 2024
1 parent e2419a9 commit 02f36c9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ Well tested. Used in production across Infomaniak's apps written in Swift.
- Work will be executed out of order.
- Input order __preserved__ in the output result.

- `asyncForEach`
- Shorthand for `concurrentForEach(customConcurrency: 1)`
- __Serially__ loops over a `Collection` to perform an async task on each element.

- `asyncMap`
- Shorthand for `concurrentMap(customConcurrency: 1)`
- __Serially__ Maps an async task with nullable result.

- `asyncCompactMap`
- Shorthand for `concurrentCompactMap(customConcurrency: 1)`
- __Serially__ Maps an async task with nullable result, returning only non nil values

## Behaviour

An heuristic determines a degree of __parallelism__ for you, but can be customised. We recommend sticking to a fixed parallelism (1-4ish) when working with network calls.
Expand Down

0 comments on commit 02f36c9

Please sign in to comment.