Interface AsyncResult<V>


public interface AsyncResult<V>
A callback used by AsyncResource to be able to handle both the success and error case in a single method.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onReady(V value, Throwable error)
    Called when an AsyncResource completes.
  • Method Details

    • onReady

      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: The value that the AsyncResource completes with.

      • error: The error that is thrown by the AsyncResource.