Last active
January 4, 2017 17:25
-
-
Save anotherdev/0eb98f484f909321912162f89abfbadc 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
public interface Publisher<T> { | |
void subscribe(Subscriber<? super T> s); | |
} | |
public interface Subscriber<T> { | |
void onSubscribe(Subscription s); | |
void onNext(T t); | |
void onError(Throwable t); | |
void onComplete(); | |
} | |
public interface Processor<T, R> extends Subscriber<T>, Publisher<R> { | |
} | |
public interface Subscription { | |
void request(long n); | |
void cancel(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment