You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RxSwift/Deprecated.swift
+39
Original file line number
Diff line number
Diff line change
@@ -112,3 +112,42 @@ extension Disposable {
112
112
disposed(by: bag)
113
113
}
114
114
}
115
+
116
+
117
+
extensionObservableType{
118
+
119
+
/**
120
+
Returns an observable sequence that shares a single subscription to the underlying sequence, and immediately upon subscription replays latest element in buffer.
121
+
122
+
This operator is a specialization of replay which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed.
123
+
124
+
- seealso: [shareReplay operator on reactivex.io](http://reactivex.io/documentation/operators/replay.html)
125
+
126
+
- returns: An observable sequence that contains the elements of a sequence produced by multicasting the source sequence.
Returns an observable sequence that shares a single subscription to the underlying sequence, and immediately upon subscription replays maximum number of elements in buffer.
140
+
141
+
This operator is a specialization of replay which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed.
142
+
143
+
- seealso: [shareReplay operator on reactivex.io](http://reactivex.io/documentation/operators/replay.html)
144
+
145
+
- parameter bufferSize: Maximum element count of the replay buffer.
146
+
- returns: An observable sequence that contains the elements of a sequence produced by multicasting the source sequence.
147
+
*/
148
+
@available(*, deprecated, message:"Suggested replacement is `share(replay: 1)`. In case old 3.x behavior of `shareReplay` is required please use `share(replay: 1, scope: .forever)` instead.", renamed:"share(replay:)")
Returns an observable sequence that shares a single subscription to the underlying sequence, and immediately upon subscription replays latest element in buffer.
163
-
164
-
This operator is a specialization of replay which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed.
165
-
166
-
Unlike `shareReplay(bufferSize: Int)`, this operator will clear latest element from replay buffer in case number of subscribers drops from one to zero. In case sequence
167
-
completes or errors out replay buffer is also cleared.
168
-
169
-
- seealso: [shareReplay operator on reactivex.io](http://reactivex.io/documentation/operators/replay.html)
170
-
171
-
- returns: An observable sequence that contains the elements of a sequence produced by multicasting the source sequence.
Returns an observable sequence that shares a single subscription to the underlying sequence, and immediately upon subscription replays maximum number of elements in buffer.
183
-
184
-
This operator is a specialization of replay which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed.
185
-
186
-
- seealso: [shareReplay operator on reactivex.io](http://reactivex.io/documentation/operators/replay.html)
187
-
188
-
- parameter bufferSize: Maximum element count of the replay buffer.
189
-
- returns: An observable sequence that contains the elements of a sequence produced by multicasting the source sequence.
0 commit comments