Skip to content

Commit f33873e

Browse files
author
Aaron Tull
committed
Upgrading SyncOnSubscribe from Experimental to Beta
1 parent 7f6644c commit f33873e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/main/java/rx/Observable.java

Lines changed: 1 addition & 1 deletion
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
}

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)