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

value V
The value that the AsyncResource completes with.
error Throwable
The error that is thrown by the AsyncResource.