public class RealmAsyncTask
extends java.lang.Object
Users are responsible for maintaining a reference to RealmAsyncTask in order
to call cancel() in case of a configuration change for example (to avoid memory leak, as the
transaction will post the result to the caller's thread callback)
| Constructor and Description |
|---|
RealmAsyncTask(java.util.concurrent.Future<?> pendingQuery) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Attempts to cancel execution of this transaction (if it hasn't already completed or previously cancelled)
|
boolean |
isCancelled()
Whether an attempt to cancel the transaction was performed
|
public RealmAsyncTask(java.util.concurrent.Future<?> pendingQuery)
public void cancel()
public boolean isCancelled()
true if cancel() has already been called, false otherwise