use of webpiecesxxxxxpackage.service.FetchValueRequest in project webpieces by deanhiller.
the class MainController method myAsyncMethod.
public XFuture<Action> myAsyncMethod() {
FetchValueRequest request = new FetchValueRequest("dean", 21);
XFuture<FetchValueResponse> remoteValue = service.fetchValue(request);
// fetchRemoteValue("dean", 21);
return remoteValue.thenApply(s -> convertToAction(s.getNum()));
}
Aggregations