public interface Resolve<T,Tx,Fx,Px>
Promise's.| Modifier and Type | Method and Description |
|---|---|
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(Resolve),
Deferred.resolve(Object)Copyright © 2015 MachineCode. All rights reserved.