Result - type of resultpublic interface PreparedOperation<Result>
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<Result> |
asRxObservable()
Creates
Observable that emits result of Operation. |
rx.Single<Result> |
asRxSingle()
Creates
Single that emits result of Operation lazily when somebody subscribes to it. |
rx.Observable<Result> |
createObservable()
Deprecated.
(will be removed in 2.0) please use
asRxObservable(). |
Result |
executeAsBlocking()
Executes operation synchronously in current thread.
|
@Nullable @WorkerThread Result executeAsBlocking()
Notice: Blocking I/O operation should not be executed on the Main Thread,
it can cause ANR (Activity Not Responding dialog), block the UI and drop animations frames.
So please, execute blocking I/O operation only from background thread.
See WorkerThread.
@NonNull @CheckResult @Deprecated rx.Observable<Result> createObservable()
asRxObservable().Observable that emits result of Operation.
Observable may be "Hot" or "Cold", please read documentation of the concrete implementation.
Observer.onNext(Object) call.@NonNull @CheckResult rx.Observable<Result> asRxObservable()
Observable that emits result of Operation.
Observable may be "Hot" (usually "Warm") or "Cold", please read documentation of the concrete implementation.
Observer.onNext(Object) call.@NonNull @CheckResult rx.Single<Result> asRxSingle()
Single that emits result of Operation lazily when somebody subscribes to it.