Created
October 16, 2019 14:27
-
-
Save league55/99d87d8daf6d47d10c38196e1a807e44 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
@Override | |
public Future<String> getInfo(String input) { | |
logger.info("Providing for: " + input); | |
socket.write(input); | |
return Future.future(promise -> { | |
socket.handler(buffer -> { | |
promise.complete(buffer.getString(0, buffer.length())); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment