Skip to content

Commit 953c483

Browse files
author
Aaron Tull
committed
Upgrading SyncOnSubscribe and AsyncOnSubscribe from experimental to beta
1 parent fd2da39 commit 953c483

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

src/main/java/rx/Observable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static <T> Observable<T> create(OnSubscribe<T> f) {
126126
* @see <a href="http://reactivex.io/documentation/operators/create.html">ReactiveX operators documentation: Create</a>
127127
* @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
128128
*/
129-
@Experimental
129+
@Beta
130130
public static <S, T> Observable<T> create(SyncOnSubscribe<S, T> syncOnSubscribe) {
131131
return new Observable<T>(hook.onCreate(syncOnSubscribe));
132132
}
@@ -161,7 +161,7 @@ public static <S, T> Observable<T> create(SyncOnSubscribe<S, T> syncOnSubscribe)
161161
* @see <a href="http://reactivex.io/documentation/operators/create.html">ReactiveX operators documentation: Create</a>
162162
* @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
163163
*/
164-
@Experimental
164+
@Beta
165165
public static <S, T> Observable<T> create(AsyncOnSubscribe<S, T> asyncOnSubscribe) {
166166
return new Observable<T>(hook.onCreate(asyncOnSubscribe));
167167
}

src/main/java/rx/observables/AsyncOnSubscribe.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818

1919
import java.util.*;
2020
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
21-
21+
2222
import rx.*;
2323
import rx.Observable;
2424
import rx.Observable.OnSubscribe;
2525
import rx.Observer;
26-
import rx.annotations.Experimental;
2726
import rx.functions.*;
2827
import rx.internal.operators.*;
2928
import rx.observers.*;
3029
import rx.plugins.RxJavaPlugins;
3130
import rx.subscriptions.CompositeSubscription;
31+
import rx.annotations.Beta;
3232

3333
/**
3434
* A utility class to create {@code OnSubscribe<T>} functions that respond correctly to back
@@ -44,7 +44,7 @@
4444
* @param <T>
4545
* the type of {@code Subscribers} that will be compatible with {@code this}.
4646
*/
47-
@Experimental
47+
@Beta
4848
public abstract class AsyncOnSubscribe<S, T> implements OnSubscribe<T> {
4949

5050
/**
@@ -108,7 +108,7 @@ protected void onUnsubscribe(S state) {
108108
* {@link #next(Object, long, Observer) next(S, long, Observer)})
109109
* @return an AsyncOnSubscribe that emits data in a protocol compatible with back-pressure.
110110
*/
111-
@Experimental
111+
@Beta
112112
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 =
@@ -137,7 +137,7 @@ public S call(S state, Long requested, Observer<Observable<? extends T>> subscri
137137
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
138138
* back-pressure.
139139
*/
140-
@Experimental
140+
@Beta
141141
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) {
@@ -165,7 +165,7 @@ public S call(S state, Long requested, Observer<Observable<? extends T>> subscri
165165
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
166166
* back-pressure.
167167
*/
168-
@Experimental
168+
@Beta
169169
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) {
@@ -184,7 +184,7 @@ public static <S, T> AsyncOnSubscribe<S, T> createStateful(Func0<? extends S> ge
184184
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
185185
* back-pressure.
186186
*/
187-
@Experimental
187+
@Beta
188188
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);
@@ -203,7 +203,7 @@ public static <S, T> AsyncOnSubscribe<S, T> createStateful(Func0<? extends S> ge
203203
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
204204
* back-pressure.
205205
*/
206-
@Experimental
206+
@Beta
207207
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>() {
@@ -230,7 +230,7 @@ public Void call(Void state, Long requested, Observer<Observable<? extends T>> s
230230
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
231231
* back-pressure.
232232
*/
233-
@Experimental
233+
@Beta
234234
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 =

src/main/java/rx/observables/SyncOnSubscribe.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import rx.Producer;
2424
import rx.Subscriber;
2525
import rx.Subscription;
26+
import rx.annotations.Beta;
2627
import rx.annotations.Experimental;
2728
import rx.exceptions.Exceptions;
2829
import rx.functions.Action0;
@@ -46,7 +47,7 @@
4647
* @param <T>
4748
* the type of {@code Subscribers} that will be compatible with {@code this}.
4849
*/
49-
@Experimental
50+
@Beta
5051
public abstract class SyncOnSubscribe<S, T> implements OnSubscribe<T> {
5152

5253
/* (non-Javadoc)
@@ -126,7 +127,7 @@ protected void onUnsubscribe(S state) {
126127
* next(S, Subscriber)})
127128
* @return a SyncOnSubscribe that emits data in a protocol compatible with back-pressure.
128129
*/
129-
@Experimental
130+
@Beta
130131
public static <S, T> SyncOnSubscribe<S, T> createSingleState(Func0<? extends S> generator,
131132
final Action2<? super S, ? super Observer<? super T>> next) {
132133
Func2<S, ? super Observer<? super T>, S> nextFunc = new Func2<S, Observer<? super T>, S>() {
@@ -155,7 +156,7 @@ public S call(S state, Observer<? super T> subscriber) {
155156
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
156157
* back-pressure.
157158
*/
158-
@Experimental
159+
@Beta
159160
public static <S, T> SyncOnSubscribe<S, T> createSingleState(Func0<? extends S> generator,
160161
final Action2<? super S, ? super Observer<? super T>> next,
161162
final Action1<? super S> onUnsubscribe) {
@@ -183,7 +184,7 @@ public S call(S state, Observer<? super T> subscriber) {
183184
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
184185
* back-pressure.
185186
*/
186-
@Experimental
187+
@Beta
187188
public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> generator,
188189
Func2<? super S, ? super Observer<? super T>, ? extends S> next,
189190
Action1<? super S> onUnsubscribe) {
@@ -202,7 +203,7 @@ public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> gen
202203
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
203204
* back-pressure.
204205
*/
205-
@Experimental
206+
@Beta
206207
public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> generator,
207208
Func2<? super S, ? super Observer<? super T>, ? extends S> next) {
208209
return new SyncOnSubscribeImpl<S, T>(generator, next);
@@ -221,7 +222,7 @@ public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> gen
221222
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
222223
* back-pressure.
223224
*/
224-
@Experimental
225+
@Beta
225226
public static <T> SyncOnSubscribe<Void, T> createStateless(final Action1<? super Observer<? super T>> next) {
226227
Func2<Void, Observer<? super T>, Void> nextFunc = new Func2<Void, Observer<? super T>, Void>() {
227228
@Override
@@ -248,7 +249,7 @@ public Void call(Void state, Observer<? super T> subscriber) {
248249
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
249250
* back-pressure.
250251
*/
251-
@Experimental
252+
@Beta
252253
public static <T> SyncOnSubscribe<Void, T> createStateless(final Action1<? super Observer<? super T>> next,
253254
final Action0 onUnsubscribe) {
254255
Func2<Void, Observer<? super T>, Void> nextFunc = new Func2<Void, Observer<? super T>, Void>() {

0 commit comments

Comments
 (0)