WarpPI/core/src/main/java/it/cavallium/warppi/flow/Subscriber.java

12 lines
206 B
Java
Raw Normal View History

package it.cavallium.warppi.flow;
public interface Subscriber<T> {
default void onComplete() {}
2018-09-02 12:45:51 +02:00
default void onError(Throwable t) {}
2018-09-02 12:45:51 +02:00
void onNext(T t);
2018-09-02 12:45:51 +02:00
void onSubscribe(Subscription s);
}