- Type Parameters:
T- the result type delivered by this task.
- All Superinterfaces:
public interface RealmResultTask<T> extends RealmAsyncTaskThe RealmResultTask is a specific version of
RealmAsyncTaskthat 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.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
get()Blocks the thread on which the call is made until the result of the operation arrives.
getAsync(App.Callback<T> callback)Provides a way to subscribe to asynchronous operations via a callback, which handles both results and errors.
T get()Blocks the thread on which the call is made until the result of the operation arrives.
- the result of the operation executed by this task.
void getAsync(App.Callback<T> callback)