Skip to content

Commit 6aef4c5

Browse files
committed
Add the equivalent of concatMap
1 parent eee5c9c commit 6aef4c5

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

Data/operators.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ catchErrorJustReturn,replaceError(with:),
99
combineLatest,"combineLatest, tryCombineLatest",
1010
compactMap,"compactMap, tryCompactMap",
1111
concat,"append, prepend",
12-
concatMap,❌,
12+
concatMap,flatMap(maxPublishers: .max(1)), Set maxPublishers to 1 so that there is only one subscription at a time
1313
create,❌,Apple removed AnyPublisher with a closure in Xcode 11 beta 3 :-(
1414
debounce,debounce,
1515
debug,print,

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ It's based on the following blog post: [https://medium.com/gett-engineering/rxsw
5757
| combineLatest | combineLatest, tryCombineLatest | |
5858
| compactMap | compactMap, tryCompactMap | |
5959
| concat | append, prepend | |
60-
| concatMap | | |
60+
| concatMap | flatMap(maxPublishers: .max(1)) | Set maxPublishers to 1 so that there is only one subscription at a time |
6161
| create || Apple removed AnyPublisher with a closure in Xcode 11 beta 3 :-( |
6262
| debounce | debounce | |
6363
| debug | print | |

Resources/basics.jpg

-25.1 KB
Loading

Resources/core_components.jpg

-78.3 KB
Loading

Resources/operators.jpg

-135 KB
Loading

0 commit comments

Comments
 (0)