class GetAllCustomFuture<T, U> : GetFuture<T>
Get multiple elements and transform them
GetAllCustomFuture(futureGet: FutureGet, transformer: (List<U>) -> T)
Get multiple elements and transform them |
val futureGet: FutureGet
base TomP2P FutureGet |
|
val transformer: (List<U>) -> T
callable, to transform the DHT's response type to the method's return type
Note: when the response is null, the transformer is skipped ( |
fun onGet(emitter: (data: T) -> Unit): Unit
Multiple element have been found and have been transformed |
|
fun onNotFound(emitter: () -> Unit): Unit
Multiple elements have not been found |