Skip to content

Commit 00ab0bd

Browse files
committed
Add empty. never, startWith, timer (Thanks @stephencelis!)
1 parent 9296d13 commit 00ab0bd

File tree

3 files changed

+76
-78
lines changed

3 files changed

+76
-78
lines changed

Data/operators.csv

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dematerialize,❌,
2020
distinctUntilChanged,"removeDuplicates, tryRemoveDuplicates",
2121
do,handleEvents,
2222
elementAt,output(at:),
23-
empty,,
23+
empty,Publishers.Empty(completeImmediately: true),
2424
enumerated,❌,
2525
error,Publishers.Once,Publishers.Once has an initializer that takes an Error
2626
filter,"filter, tryFilter",
@@ -39,7 +39,7 @@ map,"map, tryMap",
3939
materialize,❌,
4040
merge,"merge, tryMerge",
4141
multicast,multicast,
42-
never,,
42+
never,Publishers.Empty(completeImmediately: false),
4343
observeOn,receive(on:),
4444
of,❌,
4545
publish,makeConnectable,
@@ -51,19 +51,18 @@ repeatElement,❌,
5151
retryWhen,❌,
5252
sample,❌,
5353
scan,"scan, tryScan",
54-
share,share,"There’s no replay in Combine, and no scope. Could be “faked” with multicast."
54+
share,share,There’s no replay or scope in Combine. Could be “faked” with multicast.
5555
skip(3),dropFirst(3),
5656
skipUntil,drop(untilOutputFrom:),
5757
skipWhile,"drop(while:), tryDrop(while:)",
58-
startWith,,
58+
startWith,prepend,
5959
subscribe,sink,
60-
subscribeOn,subscribe(on:),"RxSwift uses Schedulers Combine uses RunLoop, DispatchQueue, and OperationQueue."
61-
take(3).toArray(),collect(3),
60+
subscribeOn,subscribe(on:),"RxSwift uses Schedulers. Combine uses RunLoop, DispatchQueue, and OperationQueue."
6261
takeLast,last,
6362
takeUntil,prefix(untilOutputFrom:),
6463
throttle,throttle,
6564
timeout,timeout,
66-
timer,,
65+
timer,Timer.publish,
6766
toArray(),collect(),
6867
window,collect(Publishers.TimeGroupingStrategy),Combine has a TimeGroupingStrategy.byTimeOrCount that could be used as a window.
6968
withLatestFrom,❌,

0 commit comments

Comments
 (0)