Vsevolod Ganin
02/11/2021, 6:00 PMRecomposer.kt
. Only Compose’s code in the thread stack. I’m on alpha12while (shouldKeepRecomposing) {
// Await something to do
if (_state.value < State.PendingWork) {
suspendCancellableCoroutine<Unit> { co ->
synchronized(stateLock) {
val currentState = _state.value
if (currentState == State.PendingWork ||
currentState <= State.ShuttingDown
) {
co.resume(Unit)
} else {
frameContinuation = co
}
}
}
}
// Don't await a new frame if we don't have frame-scoped work
if (
synchronized(stateLock) {
if (!hasFrameWorkLocked) {
recordComposerModificationsLocked()
!hasFrameWorkLocked
} else false
}
) continue
...
pointerInput
but I’m not sureAdam Powell
02/11/2021, 6:15 PMSarojini
05/05/2023, 6:56 AMVsevolod Ganin
05/05/2023, 12:18 PMSarojini
05/05/2023, 12:21 PMVsevolod Ganin
05/05/2023, 12:25 PMpointerInput
. By that I mean no event consuming is happening in some pointerInput
lambdaSarojini
05/05/2023, 5:47 PM