ResolveTreeFuture
Constructors
Link copied to clipboard
constructor(c: ComponentContext, component: Component, treeState: TreeState, @Nullable currentRootNode: LithoNode, @Nullable perfEvent: PerfEvent, resolveVersion: Int, useCancellableFutures: Boolean, componentTreeId: Int, @Nullable extraAttribution: String, source: Int)
constructor(c: ComponentContext, component: Component, treeState: TreeState, @Nullable currentRootNode: LithoNode, @Nullable perfEvent: PerfEvent, resolveVersion: Int, useCancellableFutures: Boolean, syncWidthSpec: Int, syncHeightSpec: Int, componentTreeId: Int, @Nullable extraAttribution: String, source: Int)
TODO(T137275959)
Properties
Link copied to clipboard
Link copied to clipboard
val FUTURE_RESULT_NULL_REASON_RESUME_NON_MAIN_THREAD: String = "Resuming partial result skipped due to not being on main-thread"
Link copied to clipboard
val FUTURE_RESULT_NULL_REASON_SYNC_RESULT_NON_MAIN_THREAD: String = "Waiting for sync result from non-main-thread"
Functions
Link copied to clipboard
Returns a String that gives a textual representation of the type of future it is.
Link copied to clipboard
Returns an integer that identifies uniquely the version of this TreeFuture.
Link copied to clipboard
Link copied to clipboard
Returns true if the provided TreeFuture is equivalent to this one.
Link copied to clipboard
Releases this TreeFuture
Link copied to clipboard
open fun resolve(context: ComponentContext, component: Component, state: TreeState, version: Int, componentTreeId: Int, @Nullable currentRootNode: LithoNode, @Nullable extraAttribution: String, @Nullable future: TreeFuture, @Nullable perfEventLogger: PerfEvent): ResolveResult
Function which resolves a new RenderResult.
Link copied to clipboard
Link copied to clipboard
open fun <T : PotentiallyPartialResult?, F : TreeFuture<T>?> trackAndRunTreeFuture(treeFuture: F, futureList: List<F>, source: Int, mutex: Any, @Nullable futureExecutionListener: TreeFuture.FutureExecutionListener): TreeFuture.TreeFutureResult<T>
Given a provided tree-future, this method will track it via a given list, and run it.