Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Last active October 9, 2018 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsoltk/ac0cb78c76a9440c5ab72a60e7189dd2 to your computer and use it in GitHub Desktop.
Save zsoltk/ac0cb78c76a9440c5ab72a60e7189dd2 to your computer and use it in GitHub Desktop.
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