public interface Reject<T,F,Tx,Fx,Px>
Promise's.| Modifier and Type | Method and Description |
|---|---|
void |
reject(F that,
Deferred<Tx,Fx,Px> next)
The caller MUST ensure that one of
Deferred.resolve(Object),
Deferred.reject(Object) or Promise.cancel(boolean) is called on
the Deferred parameter. |
void |
resolve(T that,
Deferred<Tx,Fx,Px> next)
The caller MUST ensure that one of
Deferred.resolve(Object),
Deferred.reject(Object) or Promise.cancel(boolean) is called on the
Deferred parameter. |
void resolve(T that, Deferred<Tx,Fx,Px> next)
The caller MUST ensure that one of Deferred.resolve(Object),
Deferred.reject(Object) or Promise.cancel(boolean) is called on the
Deferred parameter.
that - The resolved value of the original Promise.next - A Deferred that controls the state of the returned promise.Promise.then(Reject),
Deferred.resolve(Object)void reject(F that, Deferred<Tx,Fx,Px> next)
The caller MUST ensure that one of Deferred.resolve(Object),
Deferred.reject(Object) or Promise.cancel(boolean) is called on
the Deferred parameter.
that - The rejected value of the original Promise.next - A Deferred that controls the state of the returned promise.Promise.then(Reject),
Deferred.reject(Object)Copyright © 2015 MachineCode. All rights reserved.