Skip to content

1.x: Upgrading AsyncOnSubscribe from Experimental to Beta #3817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/rx/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static <S, T> Observable<T> create(SyncOnSubscribe<S, T> syncOnSubscribe)
* @see <a href="http://reactivex.io/documentation/operators/create.html">ReactiveX operators documentation: Create</a>
* @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
*/
@Experimental
@Beta
public static <S, T> Observable<T> create(AsyncOnSubscribe<S, T> asyncOnSubscribe) {
return new Observable<T>(hook.onCreate(asyncOnSubscribe));
}
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/rx/observables/AsyncOnSubscribe.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@

import java.util.*;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;

import rx.*;
import rx.Observable;
import rx.Observable.OnSubscribe;
import rx.Observer;
import rx.annotations.Experimental;
import rx.functions.*;
import rx.internal.operators.*;
import rx.observers.*;
import rx.plugins.RxJavaPlugins;
import rx.subscriptions.CompositeSubscription;
import rx.annotations.Beta;

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

/**
Expand Down Expand Up @@ -108,7 +108,7 @@ protected void onUnsubscribe(S state) {
* {@link #next(Object, long, Observer) next(S, long, Observer)})
* @return an AsyncOnSubscribe that emits data in a protocol compatible with back-pressure.
*/
@Experimental
@Beta
public static <S, T> AsyncOnSubscribe<S, T> createSingleState(Func0<? extends S> generator,
final Action3<? super S, Long, ? super Observer<Observable<? extends T>>> next) {
Func3<S, Long, ? super Observer<Observable<? extends T>>, S> nextFunc =
Expand Down Expand Up @@ -137,7 +137,7 @@ public S call(S state, Long requested, Observer<Observable<? extends T>> subscri
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <S, T> AsyncOnSubscribe<S, T> createSingleState(Func0<? extends S> generator,
final Action3<? super S, Long, ? super Observer<Observable<? extends T>>> next,
final Action1<? super S> onUnsubscribe) {
Expand Down Expand Up @@ -165,7 +165,7 @@ public S call(S state, Long requested, Observer<Observable<? extends T>> subscri
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <S, T> AsyncOnSubscribe<S, T> createStateful(Func0<? extends S> generator,
Func3<? super S, Long, ? super Observer<Observable<? extends T>>, ? extends S> next,
Action1<? super S> onUnsubscribe) {
Expand All @@ -184,7 +184,7 @@ public static <S, T> AsyncOnSubscribe<S, T> createStateful(Func0<? extends S> ge
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <S, T> AsyncOnSubscribe<S, T> createStateful(Func0<? extends S> generator,
Func3<? super S, Long, ? super Observer<Observable<? extends T>>, ? extends S> next) {
return new AsyncOnSubscribeImpl<S, T>(generator, next);
Expand All @@ -203,7 +203,7 @@ public static <S, T> AsyncOnSubscribe<S, T> createStateful(Func0<? extends S> ge
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <T> AsyncOnSubscribe<Void, T> createStateless(final Action2<Long, ? super Observer<Observable<? extends T>>> next) {
Func3<Void, Long, Observer<Observable<? extends T>>, Void> nextFunc =
new Func3<Void, Long, Observer<Observable<? extends T>>, Void>() {
Expand All @@ -230,7 +230,7 @@ public Void call(Void state, Long requested, Observer<Observable<? extends T>> s
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <T> AsyncOnSubscribe<Void, T> createStateless(final Action2<Long, ? super Observer<Observable<? extends T>>> next,
final Action0 onUnsubscribe) {
Func3<Void, Long, Observer<Observable<? extends T>>, Void> nextFunc =
Expand Down