@@ -106,10 +106,10 @@ protected void onUnsubscribe(S state) {
106
106
* @param next
107
107
* produces data to the downstream subscriber (see
108
108
* {@link #next(Object, long, Observer) next(S, long, Observer)})
109
- * @return an OnSubscribe that emits data in a protocol compatible with back-pressure.
109
+ * @return an AsyncOnSubscribe that emits data in a protocol compatible with back-pressure.
110
110
*/
111
111
@ Experimental
112
- public static <S , T > OnSubscribe < T > createSingleState (Func0 <? extends S > generator ,
112
+ public static <S , T > AsyncOnSubscribe < S , T > createSingleState (Func0 <? extends S > generator ,
113
113
final Action3 <? super S , Long , ? super Observer <Observable <? extends T >>> next ) {
114
114
Func3 <S , Long , ? super Observer <Observable <? extends T >>, S > nextFunc =
115
115
new Func3 <S , Long , Observer <Observable <? extends T >>, S >() {
@@ -134,11 +134,11 @@ public S call(S state, Long requested, Observer<Observable<? extends T>> subscri
134
134
* {@link #next(Object, long, Observer) next(S, long, Observer)})
135
135
* @param onUnsubscribe
136
136
* clean up behavior (see {@link #onUnsubscribe(Object) onUnsubscribe(S)})
137
- * @return an OnSubscribe that emits data downstream in a protocol compatible with
137
+ * @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
138
138
* back-pressure.
139
139
*/
140
140
@ Experimental
141
- public static <S , T > OnSubscribe < T > createSingleState (Func0 <? extends S > generator ,
141
+ public static <S , T > AsyncOnSubscribe < S , T > createSingleState (Func0 <? extends S > generator ,
142
142
final Action3 <? super S , Long , ? super Observer <Observable <? extends T >>> next ,
143
143
final Action1 <? super S > onUnsubscribe ) {
144
144
Func3 <S , Long , Observer <Observable <? extends T >>, S > nextFunc =
@@ -162,11 +162,11 @@ public S call(S state, Long requested, Observer<Observable<? extends T>> subscri
162
162
* {@link #next(Object, long, Observer) next(S, long, Observer)})
163
163
* @param onUnsubscribe
164
164
* clean up behavior (see {@link #onUnsubscribe(Object) onUnsubscribe(S)})
165
- * @return an OnSubscribe that emits data downstream in a protocol compatible with
165
+ * @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
166
166
* back-pressure.
167
167
*/
168
168
@ Experimental
169
- public static <S , T > OnSubscribe < T > createStateful (Func0 <? extends S > generator ,
169
+ public static <S , T > AsyncOnSubscribe < S , T > createStateful (Func0 <? extends S > generator ,
170
170
Func3 <? super S , Long , ? super Observer <Observable <? extends T >>, ? extends S > next ,
171
171
Action1 <? super S > onUnsubscribe ) {
172
172
return new AsyncOnSubscribeImpl <S , T >(generator , next , onUnsubscribe );
@@ -181,11 +181,11 @@ public static <S, T> OnSubscribe<T> createStateful(Func0<? extends S> generator,
181
181
* @param next
182
182
* produces data to the downstream subscriber (see
183
183
* {@link #next(Object, long, Observer) next(S, long, Observer)})
184
- * @return an OnSubscribe that emits data downstream in a protocol compatible with
184
+ * @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
185
185
* back-pressure.
186
186
*/
187
187
@ Experimental
188
- public static <S , T > OnSubscribe < T > createStateful (Func0 <? extends S > generator ,
188
+ public static <S , T > AsyncOnSubscribe < S , T > createStateful (Func0 <? extends S > generator ,
189
189
Func3 <? super S , Long , ? super Observer <Observable <? extends T >>, ? extends S > next ) {
190
190
return new AsyncOnSubscribeImpl <S , T >(generator , next );
191
191
}
@@ -200,11 +200,11 @@ public static <S, T> OnSubscribe<T> createStateful(Func0<? extends S> generator,
200
200
* @param next
201
201
* produces data to the downstream subscriber (see
202
202
* {@link #next(Object, long, Observer) next(S, long, Observer)})
203
- * @return an OnSubscribe that emits data downstream in a protocol compatible with
203
+ * @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
204
204
* back-pressure.
205
205
*/
206
206
@ Experimental
207
- public static <T > OnSubscribe < T > createStateless (final Action2 <Long , ? super Observer <Observable <? extends T >>> next ) {
207
+ public static <T > AsyncOnSubscribe < Void , T > createStateless (final Action2 <Long , ? super Observer <Observable <? extends T >>> next ) {
208
208
Func3 <Void , Long , Observer <Observable <? extends T >>, Void > nextFunc =
209
209
new Func3 <Void , Long , Observer <Observable <? extends T >>, Void >() {
210
210
@ Override
@@ -227,11 +227,11 @@ public Void call(Void state, Long requested, Observer<Observable<? extends T>> s
227
227
* {@link #next(Object, long, Observer) next(S, long, Observer)})
228
228
* @param onUnsubscribe
229
229
* clean up behavior (see {@link #onUnsubscribe(Object) onUnsubscribe(S)})
230
- * @return an OnSubscribe that emits data downstream in a protocol compatible with
230
+ * @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
231
231
* back-pressure.
232
232
*/
233
233
@ Experimental
234
- public static <T > OnSubscribe < T > createStateless (final Action2 <Long , ? super Observer <Observable <? extends T >>> next ,
234
+ public static <T > AsyncOnSubscribe < Void , T > createStateless (final Action2 <Long , ? super Observer <Observable <? extends T >>> next ,
235
235
final Action0 onUnsubscribe ) {
236
236
Func3 <Void , Long , Observer <Observable <? extends T >>, Void > nextFunc =
237
237
new Func3 <Void , Long , Observer <Observable <? extends T >>, Void >() {
0 commit comments