Skip to content
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

Upgrading SyncOnSubscribe from experimental to beta #3780

Merged
merged 1 commit into from
Mar 31, 2016
Merged
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 @@ -126,7 +126,7 @@ public static <T> Observable<T> create(OnSubscribe<T> f) {
* @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(SyncOnSubscribe<S, T> syncOnSubscribe) {
return new Observable<T>(hook.onCreate(syncOnSubscribe));
}
Expand Down
15 changes: 8 additions & 7 deletions src/main/java/rx/observables/SyncOnSubscribe.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import rx.Producer;
import rx.Subscriber;
import rx.Subscription;
import rx.annotations.Beta;
import rx.annotations.Experimental;
import rx.exceptions.Exceptions;
import rx.functions.Action0;
Expand All @@ -46,7 +47,7 @@
* @param <T>
* the type of {@code Subscribers} that will be compatible with {@code this}.
*/
@Experimental
@Beta
public abstract class SyncOnSubscribe<S, T> implements OnSubscribe<T> {

/* (non-Javadoc)
Expand Down Expand Up @@ -126,7 +127,7 @@ protected void onUnsubscribe(S state) {
* next(S, Subscriber)})
* @return a SyncOnSubscribe that emits data in a protocol compatible with back-pressure.
*/
@Experimental
@Beta
public static <S, T> SyncOnSubscribe<S, T> createSingleState(Func0<? extends S> generator,
final Action2<? super S, ? super Observer<? super T>> next) {
Func2<S, ? super Observer<? super T>, S> nextFunc = new Func2<S, Observer<? super T>, S>() {
Expand Down Expand Up @@ -155,7 +156,7 @@ public S call(S state, Observer<? super T> subscriber) {
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <S, T> SyncOnSubscribe<S, T> createSingleState(Func0<? extends S> generator,
final Action2<? super S, ? super Observer<? super T>> next,
final Action1<? super S> onUnsubscribe) {
Expand Down Expand Up @@ -183,7 +184,7 @@ public S call(S state, Observer<? super T> subscriber) {
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> generator,
Func2<? super S, ? super Observer<? super T>, ? extends S> next,
Action1<? super S> onUnsubscribe) {
Expand All @@ -202,7 +203,7 @@ public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> gen
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> generator,
Func2<? super S, ? super Observer<? super T>, ? extends S> next) {
return new SyncOnSubscribeImpl<S, T>(generator, next);
Expand All @@ -221,7 +222,7 @@ public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> gen
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <T> SyncOnSubscribe<Void, T> createStateless(final Action1<? super Observer<? super T>> next) {
Func2<Void, Observer<? super T>, Void> nextFunc = new Func2<Void, Observer<? super T>, Void>() {
@Override
Expand All @@ -248,7 +249,7 @@ public Void call(Void state, Observer<? super T> subscriber) {
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
* back-pressure.
*/
@Experimental
@Beta
public static <T> SyncOnSubscribe<Void, T> createStateless(final Action1<? super Observer<? super T>> next,
final Action0 onUnsubscribe) {
Func2<Void, Observer<? super T>, Void> nextFunc = new Func2<Void, Observer<? super T>, Void>() {
Expand Down