Skip to content

Commit 6e7848f

Browse files
committedMay 17, 2020
Minor updates to Maybe/Single
1 parent 9bb868a commit 6e7848f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎Data/core_components.csv

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Completable,❌,
66
CompositeDisposable,❌,
77
ConnectableObservableType,ConnectablePublisher,
88
Disposable,Cancellable,
9-
DisposeBag,A collection of AnyCancellables,"Call anyCancellable.store(in: collection), where collection can be an array, a set, or any other RangeReplaceableCollection"
9+
DisposeBag,A collection of AnyCancellables,"Call anyCancellable.store(in: &collection), where collection can be an array, a set, or any other RangeReplaceableCollection"
1010
Driver,BindableObject (SwiftUI),"Both guarantee no failure, but Driver guarantees delivery on Main Thread. In Combine, SwiftUI recreates the entire view hierarachy on the Main Thread, instead."
11-
Maybe,❌,Apple removed Publishers.Optional.
11+
Maybe,Publishers.Optional,
1212
Observable,Publisher,
1313
Observer,Subscriber,
1414
PublishRelay,❌,"Simple wrapper around PublishSubject, could be easily recreated in Combine"
@@ -18,6 +18,6 @@ ScheduledDisposable,❌,
1818
SchedulerType,Scheduler,
1919
SerialDisposable,❌,
2020
Signal,❌,
21-
Single,Future,"They're only similar in the sense of single emission, but Future shares resources and executes immediately (very strange behavior)"
21+
Single,Deferred + Future,"Future has to be wrapped in a Deferred, or its greedy as opposed to Single's laziness"
2222
SubjectType,Subject,
2323
TestScheduler,❌,There doesn't seem to be an existing testing scheduler for Combine code

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ It's based on the following blog post: [https://medium.com/gett-engineering/rxsw
2626
| CompositeDisposable || |
2727
| ConnectableObservableType | ConnectablePublisher | |
2828
| Disposable | Cancellable | |
29-
| DisposeBag | A collection of AnyCancellables | Call anyCancellable.store(in: collection), where collection can be an array, a set, or any other RangeReplaceableCollection |
29+
| DisposeBag | A collection of AnyCancellables | Call anyCancellable.store(in: &collection), where collection can be an array, a set, or any other RangeReplaceableCollection |
3030
| Driver | BindableObject (SwiftUI) | Both guarantee no failure, but Driver guarantees delivery on Main Thread. In Combine, SwiftUI recreates the entire view hierarachy on the Main Thread, instead. |
31-
| Maybe | | Apple removed Publishers.Optional. |
31+
| Maybe | Publishers.Optional | |
3232
| Observable | Publisher | |
3333
| Observer | Subscriber | |
3434
| PublishRelay || Simple wrapper around PublishSubject, could be easily recreated in Combine |
@@ -38,7 +38,7 @@ It's based on the following blog post: [https://medium.com/gett-engineering/rxsw
3838
| SchedulerType | Scheduler | |
3939
| SerialDisposable || |
4040
| Signal || |
41-
| Single | Future | They're only similar in the sense of single emission, but Future shares resources and executes immediately (very strange behavior) |
41+
| Single | Deferred + Future | Future has to be wrapped in a Deferred, or its greedy as opposed to Single's laziness |
4242
| SubjectType | Subject | |
4343
| TestScheduler || There doesn't seem to be an existing testing scheduler for Combine code |
4444

‎Resources/core_components.jpg

-9.77 KB
Loading

0 commit comments

Comments
 (0)
Failed to load comments.