Companion
object Companion
Functions
Link copied to clipboard
fun <T : PotentiallyPartialResult, F : TreeFuture<T>> trackAndRunTreeFuture(treeFuture: F, futureList: MutableList<F>, source: Int, mutex: Any, futureExecutionListener: TreeFuture.FutureExecutionListener?, viewModelStore: LithoViewModelStore? = null): TreeFuture.TreeFutureResult<T>
Given a provided tree-future, this method will track it via a given list, and run it.
Link copied to clipboard
fun <T : PotentiallyPartialResult, F : TreeFuture<T>> trackRunAndCommit(treeFuture: F, futureList: MutableList<F>, source: Int, mutex: Any, futureExecutionListener: TreeFuture.FutureExecutionListener?, scope: InitialStateScope, viewModelStore: LithoViewModelStore?, onResult: (T) -> Unit): TreeFuture.TreeFutureResult<T>
Wraps compute (via trackAndRunTreeFuture) and commit into a single operation.