Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-semyonov committed Mar 7, 2024
1 parent 7a74595 commit 3e554f2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -998,9 +998,8 @@ internal class AccessibilityMediator(
)

while (true) {
val result = invalidationChannel.tryReceive()

val invalidation = result.getOrNull() ?: break
// Consumes all the invalidations to select a proper strategy
val invalidation = invalidationChannel.tryReceive().getOrNull() ?: break
strategy = strategy.reduce(invalidation)
}

Expand Down

0 comments on commit 3e554f2

Please sign in to comment.