Modifiers | Name | Description |
---|---|---|
class |
RxPromise.1 |
Modifiers | Name | Description |
---|---|---|
protected boolean |
finished |
|
protected io.reactivex.rxjava3.core.Observable<T> |
observable |
|
protected RxPromiseFactory |
promiseFactory |
|
protected io.reactivex.rxjava3.subjects.Subject<T> |
subject |
|
protected io.reactivex.disposables.Disposable |
subscription |
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<T> callable) |
|
Promise<T> |
onError(groovy.lang.Closure<T> callable) |
|
static java.lang.Object |
runCallable(groovy.lang.Closure callable) |
|
Promise<T> |
then(groovy.lang.Closure<T> callable) |
|
io.reactivex.rxjava3.core.Observable<T> |
toObservable() |
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() |