Package org.jdeferred2
Interface FailPipe<F,D_OUT,F_OUT,P_OUT>
-
- Type Parameters:
F
- Type of the failure inputD_OUT
- Type of the output from this pipeF_OUT
- Type of the failure output from this pipeP_OUT
- Type of the progress output from this pipe
public interface FailPipe<F,D_OUT,F_OUT,P_OUT>
A pipe invoked when thePromise
's state becomesPromise.State.REJECTED
. Pipes allow to start a newDeferred
and any state change or update invoked on the newDeferred
is piped to the outerPromise
. This allows to chain asynchronous calls or convert a rejection into resolve or vice versa.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Promise<D_OUT,F_OUT,P_OUT>
pipeFail(F result)
-