Interface AlwaysPipe<D,F,D_OUT,F_OUT,P>

Type Parameters:
D - Type of the input
F - Type of the failure input
D_OUT - Type of the output from this pipe
F_OUT - Type of the failure output from this pipe
P - Type of the progress output from this pipe

public interface AlwaysPipe<D,F,D_OUT,F_OUT,P>
A pipe invoked when the Promise's state becomes Promise.State.RESOLVED or Promise.State.REJECTED. Pipes allow to start a new Deferred and any state change or update invoked on the new Deferred is piped to the outer Promise. This allows to chain asynchronous calls or convert a rejection into resolve or vice versa.
Since:
2.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    pipeAlways(Promise.State state, D resolved, F rejected)
    Invoked when the Promise resolves or rejects a value.