mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-07 05:07:54 +02:00
Wrap a few things trying to prevent UI / main thread hang we saw one time
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user