@JsType(isNative=true) public class Promise extends Object
| Modifier and Type | Method and Description |
|---|---|
static Promise |
all(Object... objs) |
Promise |
catchException(PromiseThen error) |
static Promise |
race(Object... iterable) |
static Promise |
reject(Object obj) |
static Promise |
resolve(Object obj) |
Promise |
then(PromiseThen f) |
Promise |
then(PromiseThen f,
PromiseThen error) |
public Promise then(PromiseThen f)
public Promise then(PromiseThen f, PromiseThen error)
@JsMethod(name="catch") public Promise catchException(PromiseThen error)
Copyright © 2017. All rights reserved.