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
val FUTURE_RESULT_NULL_REASON_RELEASED: String = "TreeFuture released"
val FUTURE_RESULT_NULL_REASON_RESUME_NON_MAIN_THREAD: String = "Resuming partial result skipped due to not being on main-thread"
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
open fun getVersion(): Int
Returns an integer that identifies uniquely the version of this TreeFuture.
Link copied to clipboard
open fun getWaitingCount(): Int
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
open fun resume(partialResult: ResolveResult, @Nullable extraAttribution: String): ResolveResult
Link copied to clipboard
Given a provided tree-future, this method will track it via a given list, and run it.