public class PromiseOutcome extends DataClass
Note: This is the type of object returned by Promise.allSettled().
factoryCreated, factoryProperties| Constructor and Description |
|---|
PromiseOutcome() |
PromiseOutcome(com.google.gwt.core.client.JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
static PromiseOutcome | getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.Object | getReason() Only if the status is REJECTED, the reason that the Promise rejected with. |
SettledPromiseStatus | getStatus() The state that the Promise settled into. |
java.lang.Object | getValue() Only if the status is FULFILLED, the value that the Promise fulfilled with. |
PromiseOutcome | setReason(java.lang.Object reason) Only if the status is REJECTED, the reason that the Promise rejected with. |
PromiseOutcome | setStatus(SettledPromiseStatus status) The state that the Promise settled into. |
PromiseOutcome | setValue(java.lang.Object value) Only if the status is FULFILLED, the value that the Promise fulfilled with. |
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreatedpublic PromiseOutcome()
public PromiseOutcome(com.google.gwt.core.client.JavaScriptObject jsObj)
public static PromiseOutcome getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public PromiseOutcome setReason(java.lang.Object reason)
status is REJECTED, the reason that the Promise rejected with.reason - New reason value. Default value is *initialized by the implementation*PromiseOutcome instance, for chaining setter callspublic java.lang.Object getReason()
status is REJECTED, the reason that the Promise rejected with.public PromiseOutcome setStatus(SettledPromiseStatus status)
Promise settled into.status - New status value. Default value is *initialized by the implementation*PromiseOutcome instance, for chaining setter callspublic SettledPromiseStatus getStatus()
Promise settled into.public PromiseOutcome setValue(java.lang.Object value)
status is FULFILLED, the value that the Promise fulfilled with.value - New value value. Default value is *initialized by the implementation*PromiseOutcome instance, for chaining setter callspublic java.lang.Object getValue()
status is FULFILLED, the value that the Promise fulfilled with.