Interface AlwaysCallback<D,​F>

    • Method Detail

      • onAlways

        void onAlways​(Promise.State state,
                      D resolved,
                      F 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