T - the result type delivered by this task.public interface RealmResultTask<T> extends RealmAsyncTask
RealmAsyncTask that provides a mechanism
to work with asynchronous operations carried out against MongoDB Realm that yield a result.
This class offers both blocking (get) and non-blocking (getAsync) method calls.
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Blocks the thread on which the call is made until the result of the operation arrives.
|
void |
getAsync(App.Callback<T> callback)
Provides a way to subscribe to asynchronous operations via a callback, which handles both
results and errors.
|
cancel, isCancelledT get()
void getAsync(App.Callback<T> callback)
callback - the App.Callback designed to receive results.IllegalStateException - if called from a thread without a Looper or
from an IntentService thread.