Skip to content

Commit 998ba49

Browse files
committed
Add the equivalent of concatMap
1 parent b86fd44 commit 998ba49

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Data/operators.csv

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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/operators.jpg

14.8 KB
Loading

0 commit comments

Comments
 (0)