@@ -106,10 +106,10 @@ protected void onUnsubscribe(S state) {
106106 * @param next
107107 * produces data to the downstream subscriber (see
108108 * {@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.
110110 */
111111 @ 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 ,
113113 final Action3 <? super S , Long , ? super Observer <Observable <? extends T >>> next ) {
114114 Func3 <S , Long , ? super Observer <Observable <? extends T >>, S > nextFunc =
115115 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
134134 * {@link #next(Object, long, Observer) next(S, long, Observer)})
135135 * @param onUnsubscribe
136136 * 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
138138 * back-pressure.
139139 */
140140 @ 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 ,
142142 final Action3 <? super S , Long , ? super Observer <Observable <? extends T >>> next ,
143143 final Action1 <? super S > onUnsubscribe ) {
144144 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
162162 * {@link #next(Object, long, Observer) next(S, long, Observer)})
163163 * @param onUnsubscribe
164164 * 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
166166 * back-pressure.
167167 */
168168 @ 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 ,
170170 Func3 <? super S , Long , ? super Observer <Observable <? extends T >>, ? extends S > next ,
171171 Action1 <? super S > onUnsubscribe ) {
172172 return new AsyncOnSubscribeImpl <S , T >(generator , next , onUnsubscribe );
@@ -181,11 +181,11 @@ public static <S, T> OnSubscribe<T> createStateful(Func0<? extends S> generator,
181181 * @param next
182182 * produces data to the downstream subscriber (see
183183 * {@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
185185 * back-pressure.
186186 */
187187 @ 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 ,
189189 Func3 <? super S , Long , ? super Observer <Observable <? extends T >>, ? extends S > next ) {
190190 return new AsyncOnSubscribeImpl <S , T >(generator , next );
191191 }
@@ -200,11 +200,11 @@ public static <S, T> OnSubscribe<T> createStateful(Func0<? extends S> generator,
200200 * @param next
201201 * produces data to the downstream subscriber (see
202202 * {@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
204204 * back-pressure.
205205 */
206206 @ 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 ) {
208208 Func3 <Void , Long , Observer <Observable <? extends T >>, Void > nextFunc =
209209 new Func3 <Void , Long , Observer <Observable <? extends T >>, Void >() {
210210 @ Override
@@ -227,11 +227,11 @@ public Void call(Void state, Long requested, Observer<Observable<? extends T>> s
227227 * {@link #next(Object, long, Observer) next(S, long, Observer)})
228228 * @param onUnsubscribe
229229 * 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
231231 * back-pressure.
232232 */
233233 @ 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 ,
235235 final Action0 onUnsubscribe ) {
236236 Func3 <Void , Long , Observer <Observable <? extends T >>, Void > nextFunc =
237237 new Func3 <Void , Long , Observer <Observable <? extends T >>, Void >() {
0 commit comments