Interface Callback<V>

Type Parameters:
V - the type of result

public interface Callback<V>
Represents a method which may be called once a result has been computed asynchronously.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    done(V result, Throwable error)
    Called when the result is done.
  • Method Details

    • done

      void done(V result, Throwable error)
      Called when the result is done.
      Parameters:
      result - the result of the computation
      error - the error(s) that occurred, if any