GetFuture(futureGet: FutureGet)
Base class for all futures that get something. Get one element.
In the subclasses, you will get easy semantics.
onGet
is called when a successful response has been received (not null)onNotFound
is called, when a response has been received, but the answer is null, indicating that the searched key was not foundThe subclasses differ by these orthogonal concepts:
All
Custom
UserId
from the DHT, but you want to return a User