LayoutTreeFuture
Constructors
Properties
true
if this future is interruptible.
true
if an interrupt has been requested on this future, indicating the calculation must be resumed on the main-thread.
Returns true if this future has been released.
Functions
Returns a String that gives a textual representation of the type of future it is.
Returns an integer that identifies uniquely the version of this TreeFuture.
Returns true if the provided TreeFuture is equivalent to this one.
Releases this TreeFuture
Synchronously executes the future task, ensuring the result is calculated, and resumed on the main thread if it is interrupted while running on a background thread.
We want to prevent a sync layout in the background from waiting on an interrupted layout (which will return a null result). To handle this, we make sure that a sync bg layout can only wait on a NON_INTERRUPTIBLE future, and that a NON_INTERRUPTIBLE future can't be interrupted.