| Modifier and Type | Field and Description |
|---|---|
Promise<Result,FailResponse> |
Deferred.promise
Returns the promise that is wrapped by this Deferred object.
|
| Modifier and Type | Method and Description |
|---|---|
static <Result,FailResponse> |
RSVP.all(org.stjs.javascript.Array<Promise<Result,FailResponse>> promises)
Sometimes you might want to work with many promises at once.
|
static <Result,FailResponse> |
RSVP.allSettled(org.stjs.javascript.Array<Promise<Result,FailResponse>> promises)
Creates a new Promise that is fulfilled when all of the specified promises are either fulfilled or rejected.
|
static <FailResponse> |
RSVP.hash(org.stjs.javascript.Map<String,Promise<Object,FailResponse>> promises)
If you need to reference many promises at once (like all()), but would like to avoid encoding the actual promise
order you can use hash().
|
static <Result,FailResponse> |
RSVP.hashSettled(org.stjs.javascript.Map<String,Promise<Result,FailResponse>> promises)
Creates a new Promise that is fulfilled when all of the specified promises are either fulfilled or rejected.
|
Promise<Result,FailResult> |
Promise.then(org.stjs.javascript.functions.Callback1<? super Result> success)
Calls the specified callback when the promise is resolved.
|
Promise<Result,FailResult> |
Promise.then(org.stjs.javascript.functions.Callback1<? super Result> success,
org.stjs.javascript.functions.Callback1<? super FailResult> failure)
Calls one of the specified callbacks when the promise is resolved or rejected respectively.
|
<NewResult,NewFailResult> |
Promise.thenPromise(org.stjs.javascript.functions.Function1<? super Result,Promise<NewResult,NewFailResult>> success)
Calls the specified success callback with the resolution value as argument when the promise is resolved.
|
<NewResult,NewFailResult> |
Promise.thenPromise(org.stjs.javascript.functions.Function1<? super Result,Promise<NewResult,NewFailResult>> success,
org.stjs.javascript.functions.Function1<? super FailResult,Promise<NewResult,NewFailResult>> failure)
Calls the specified callbacks when the promise is resolved or rejected respectively.
|
<NewResult> |
Promise.thenReturn(org.stjs.javascript.functions.Function1<? super Result,NewResult> success)
Calls the specified success callback with the resolution value as argument when the promise is resolved.
|
<NewResult,NewFailResult> |
Promise.thenReturn(org.stjs.javascript.functions.Function1<? super Result,NewResult> success,
org.stjs.javascript.functions.Function1<? super FailResult,NewFailResult> failure)
Calls the specified callbacks when the promise is resolved or rejected respectively.
|
| Modifier and Type | Method and Description |
|---|---|
static <Result,FailResponse> |
RSVP.all(org.stjs.javascript.Array<Promise<Result,FailResponse>> promises)
Sometimes you might want to work with many promises at once.
|
static <Result,FailResponse> |
RSVP.allSettled(org.stjs.javascript.Array<Promise<Result,FailResponse>> promises)
Creates a new Promise that is fulfilled when all of the specified promises are either fulfilled or rejected.
|
static <FailResponse> |
RSVP.hash(org.stjs.javascript.Map<String,Promise<Object,FailResponse>> promises)
If you need to reference many promises at once (like all()), but would like to avoid encoding the actual promise
order you can use hash().
|
static <Result,FailResponse> |
RSVP.hashSettled(org.stjs.javascript.Map<String,Promise<Result,FailResponse>> promises)
Creates a new Promise that is fulfilled when all of the specified promises are either fulfilled or rejected.
|
<NewResult,NewFailResult> |
Promise.thenPromise(org.stjs.javascript.functions.Function1<? super Result,Promise<NewResult,NewFailResult>> success)
Calls the specified success callback with the resolution value as argument when the promise is resolved.
|
<NewResult,NewFailResult> |
Promise.thenPromise(org.stjs.javascript.functions.Function1<? super Result,Promise<NewResult,NewFailResult>> success,
org.stjs.javascript.functions.Function1<? super FailResult,Promise<NewResult,NewFailResult>> failure)
Calls the specified callbacks when the promise is resolved or rejected respectively.
|
<NewResult,NewFailResult> |
Promise.thenPromise(org.stjs.javascript.functions.Function1<? super Result,Promise<NewResult,NewFailResult>> success,
org.stjs.javascript.functions.Function1<? super FailResult,Promise<NewResult,NewFailResult>> failure)
Calls the specified callbacks when the promise is resolved or rejected respectively.
|
Copyright © 2015. All Rights Reserved.