parent
ce9b1d66e1
commit
b7589e21c8
@ -1,5 +1,9 @@
|
|||||||
|
import java.util.function.Function;
|
||||||
|
|
||||||
public interface Subscriber {
|
public interface Subscriber {
|
||||||
void receive(String message);
|
void receive(String message);
|
||||||
|
|
||||||
String toString();
|
String toString();
|
||||||
|
|
||||||
|
void onReceive(Function<String, Void> callback);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in new issue