Package | Description |
---|---|
org.osgi.util.promise |
Promise Package Version 1.0.
|
Modifier and Type | Class and Description |
---|---|
private static class |
PromiseImpl.FallbackTo<T>
A callback used by the
PromiseImpl.fallbackTo(Promise) method. |
private static class |
PromiseImpl.Recover<T>
A callback used by the
PromiseImpl.recover(Function) method. |
private static class |
PromiseImpl.RecoverWith<T>
A callback used by the
PromiseImpl.recoverWith(Function) method. |
private class |
PromiseImpl.ResolveWith
A callback used to resolve this Promise with another Promise for the
PromiseImpl.resolveWith(Promise) method. |
Modifier and Type | Field and Description |
---|---|
private Failure |
PromiseImpl.Then.failure |
Modifier and Type | Method and Description |
---|---|
<R> Promise<R> |
Promise.then(Success<? super T,? extends R> success,
Failure failure)
Chain a new Promise to this Promise with Success and Failure callbacks.
|
<R> Promise<R> |
PromiseImpl.then(Success<? super T,? extends R> success,
Failure failure)
Chain a new Promise to this Promise with Success and Failure callbacks.
|
Constructor and Description |
---|
Then(PromiseImpl<R> chained,
Success<? super T,? extends R> success,
Failure failure) |