Modifiers | Name | Description |
---|---|---|
protected rx.Subscription |
subscription |
Type | Name and description |
---|---|
RxPromiseFactory |
promiseFactory |
rx.subjects.Subject<T, T> |
subject |
Constructor and description |
---|
RxPromise(RxPromiseFactory promiseFactory, groovy.lang.Closure callable, rx.Scheduler scheduler) |
RxPromise(RxPromiseFactory promiseFactory, rx.Observable single) |
RxPromise(RxPromiseFactory promiseFactory, rx.Single single) |
RxPromise(RxPromiseFactory promiseFactory, rx.Single single, rx.subjects.Subject subject) |
RxPromise(RxPromiseFactory promiseFactory, rx.Observable observable, rx.subjects.Subject subject) |
Type Params | Return Type | Name and description |
---|---|---|
|
Promise<T> |
accept(T value) |
|
boolean |
cancel(boolean mayInterruptIfRunning) |
|
T |
get() |
|
T |
get(long timeout, java.util.concurrent.TimeUnit unit) |
|
boolean |
isCancelled() |
|
boolean |
isDone() |
|
Promise<T> |
onComplete(groovy.lang.Closure callable) |
|
Promise<T> |
onError(groovy.lang.Closure callable) |
|
Promise<T> |
then(groovy.lang.Closure callable) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation