public class IPromise<T>
extends net.java.html.lib.Objs
| Modifier | Constructor and Description |
|---|---|
protected |
IPromise(net.java.html.lib.Objs.Constructor<?> c,
Object js) |
| Modifier and Type | Method and Description |
|---|---|
static IPromise |
$as(Object obj) |
<TResult> IPromise<TResult> |
then(net.java.html.lib.Function.A1<? super T,? extends net.java.html.lib.Union.A2<IPromise<TResult>,TResult>> successCallback)
Regardless of when the promise was or will be resolved or rejected, then calls one of the success or error callbacks asynchronously as soon as the result is available.
|
<TResult> IPromise<TResult> |
then(net.java.html.lib.Function.A1<? super T,? extends net.java.html.lib.Union.A2<IPromise<TResult>,TResult>> successCallback,
net.java.html.lib.Function.A1<? super Object,? extends Object> errorCallback)
Regardless of when the promise was or will be resolved or rejected, then calls one of the success or error callbacks asynchronously as soon as the result is available.
|
<TResult> IPromise<TResult> |
then(net.java.html.lib.Function.A1<? super T,? extends net.java.html.lib.Union.A2<IPromise<TResult>,TResult>> successCallback,
net.java.html.lib.Function.A1<? super Object,? extends Object> errorCallback,
net.java.html.lib.Function.A1<? super Object,? extends Object> notifyCallback)
Regardless of when the promise was or will be resolved or rejected, then calls one of the success or error callbacks asynchronously as soon as the result is available.
|
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOfprotected IPromise(net.java.html.lib.Objs.Constructor<?> c,
Object js)
public <TResult> IPromise<TResult> then(net.java.html.lib.Function.A1<? super T,? extends net.java.html.lib.Union.A2<IPromise<TResult>,TResult>> successCallback, net.java.html.lib.Function.A1<? super Object,? extends Object> errorCallback, net.java.html.lib.Function.A1<? super Object,? extends Object> notifyCallback)
public <TResult> IPromise<TResult> then(net.java.html.lib.Function.A1<? super T,? extends net.java.html.lib.Union.A2<IPromise<TResult>,TResult>> successCallback)
public <TResult> IPromise<TResult> then(net.java.html.lib.Function.A1<? super T,? extends net.java.html.lib.Union.A2<IPromise<TResult>,TResult>> successCallback, net.java.html.lib.Function.A1<? super Object,? extends Object> errorCallback)
Copyright © 2016. All rights reserved.