public interface RealmAsyncTaskRepresents a pending asynchronous Realm task, like asynchronous transactions.
Users are responsible for maintaining a reference to
RealmAsyncTaskin 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).
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
cancel()Attempts to cancel execution of this transaction (if it hasn't already completed or previously cancelled).
isCancelled()Checks whether an attempt to cancel the transaction was performed.
boolean isCancelled()Checks whether an attempt to cancel the transaction was performed.
cancel()has already been called,