Interface AlwaysCallback<D>

Type Parameters:
D - Type used for Deferred.resolve(Object)
F - Type used for Deferred#reject(Object)

public interface AlwaysCallback<D>
A callback invoked when the Promise's state becomes either Promise.State.RESOLVED or Promise.State.REJECTED.
Author:
Ray Tsang
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAlways(Promise.State state, D resolved, Throwable rejected)
    Invoked when the Promise resolves or rejects a value.
  • Method Details

    • onAlways

      void onAlways(Promise.State state, D resolved, Throwable rejected)
      Invoked when the Promise resolves or rejects a value.
      Parameters:
      state - the state of the Promise. Either Promise.State.RESOLVED or Promise.State.REJECTED
      resolved - the resolved value (if any) of the Promise
      rejected - the rejected value (if any) of the Promise