Searched refs:withState (Results 1 – 4 of 4) sorted by relevance
91 val isEmpty: Boolean get() = _state.value.withState { head, tail -> head == tail } in head()92 … val size: Int get() = _state.value.withState { head, tail -> (tail - head) and MAX_CAPACITY_MASK } in head()107 state.withState { head, tail -> in addLast()167 state.withState { head, tail -> in removeFirstOrNull()200 state.withState { head, _ -> in removeSlowPath()231 state.withState { head, tail -> in allocateNextCopy()247 _state.value.withState { head, tail -> in map()298 inline fun <T> Long.withState(block: (head: Int, tail: Int) -> T): T { in isClosed() method
30 fun fetchMoreItems() = withState { state -> in <lambda>()31 if (state.request is Loading) return@withState in <lambda>()33 if (state.request()?.lastPage == page && page > 0) return@withState in <lambda>()62 override fun EpoxyController.buildModels() = withState(viewModel) { state -> in buildModels()
29 import com.airbnb.mvrx.withState in <lambda>()336 withState(viewModel) { state -> in <lambda>()472 private fun updateWarnings() = withState(viewModel) { state -> in <lambda>()477 if (!warnings.isEmpty() && warnings.size == warningsContainer.childCount) return@withState in <lambda>()497 private fun maxScale(): Float = withState(viewModel) { state -> in <lambda>()501 return@withState min( in <lambda>()
57 override fun EpoxyController.buildModels() = withState(viewModel) { state -> in buildModels()