public interface Handler<T>
Modifier and Type | Field and Description |
---|---|
static Handler<Object> |
EMPTY_HANDLER |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(Error error)
Callback that is called in case there is any error
|
void |
onSuccess(T obtained)
Will be invoked if the function finished successfully
|