public interface AsyncResult<V>
A callback used by
AsyncResource to be able to handle both the success and error case
in a single method.Methods
public abstract void onReady(V value, Throwable error) | Called when an AsyncResource completes. |
Method details
onReady
public abstract void onReady(V value, Throwable error)Called when an AsyncResource completes. If it completes with an error, then error will be non-null.
Parameters
valueV- The value that the AsyncResource completes with.
errorThrowable- The error that is thrown by the AsyncResource.