I think unary RPCs are used quite often, then in the service implementation we have to write 2 lines:
responseObserver.onNext(result);
responseObserver.onCompleted();
It seems logical to introduce a default method:
default void complete(V value) {
onNext(value);
onCompleted();
}
WDYT?
I think unary RPCs are used quite often, then in the service implementation we have to write 2 lines:
It seems logical to introduce a default method:
WDYT?