Package org.jdeferred2
Interface AlwaysCallback<D,F>
-
- Type Parameters:
D
- Type used forDeferred.resolve(Object)
F
- Type used forDeferred.reject(Object)
public interface AlwaysCallback<D,F>
A callback invoked when thePromise
's state becomes eitherPromise.State.RESOLVED
orPromise.State.REJECTED
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAlways(Promise.State state, D resolved, F rejected)
Invoked when thePromise
resolves or rejects a value.
-
-
-
Method Detail
-
onAlways
void onAlways(Promise.State state, D resolved, F rejected)
Invoked when thePromise
resolves or rejects a value.- Parameters:
state
- the state of thePromise
. EitherPromise.State.RESOLVED
orPromise.State.REJECTED
resolved
- the resolved value (if any) of thePromise
rejected
- the rejected value (if any) of thePromise
-
-