Last active
October 9, 2018 22:46
-
-
Save zsoltk/ac0cb78c76a9440c5ab72a60e7189dd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.reactivex; | |
import io.reactivex.annotations.*; | |
/** | |
* Represents a basic, non-backpressured {@link Observable} source base interface, | |
* consumable via an {@link Observer}. | |
* | |
* @param <T> the element type | |
* @since 2.0 | |
*/ | |
public interface ObservableSource<T> { | |
/** | |
* Subscribes the given Observer to this ObservableSource instance. | |
* @param observer the Observer, not null | |
* @throws NullPointerException if {@code observer} is null | |
*/ | |
void subscribe(@NonNull Observer<? super T> observer); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment