Wrap a few things trying to prevent UI / main thread hang we saw one time

This commit is contained in:
stopflock
2025-11-08 13:23:35 -06:00
parent ca049033e4
commit 4ccf3cace3
3 changed files with 12 additions and 6 deletions
+1
View File
@@ -11,6 +11,7 @@ class NodeCache {
final Map<int, OsmNode> _nodes = {};
/// Add or update a batch of nodes in the cache.
/// TODO: Consider moving to compute() if cache operations cause ANR
void addOrUpdate(List<OsmNode> nodes) {
for (var node in nodes) {
final existing = _nodes[node.id];