anchor.diff:      }
       _firstFrameEventReceived = true;
   
  -    for (String extension in _pendingServiceExtensions) {
  -      await _addServiceExtension(extension);
  -    }
  +    final extensionsToProcess = _pendingServiceExtensions.toList();
  +    _pendingServiceExtensions.clear();
  +    await Future.wait([
  +      for (String extension in extensionsToProcess)
  +        _addServiceExtension(extension)
  +    ]);
       extensionStatesUpdated.complete();
  -    _pendingServiceExtensions.clear();
     }
   
     Future<void> _addRegisteredExtensionRPCs(IsolateRef isolateRef) async {
  
positive.code:       // extension. This will restore extension states on the device after a hot
        // restart. [_enabledServiceExtensions] will be empty on page refresh or
        // initial start.
        await _callServiceExtension(name, _enabledServiceExtensions[name].value);
      } else {
        // Set any extensions that are already enabled on the device. This will
        // enable extension states in DevTools on page refresh or initial start.
        await _restoreExtensionFromDevice(name);
      }
    }
  
  
negative.code:     }
    }
  
    Future<void> _addServiceExtension(String name) {
      final streamController = _getServiceExtensionController(name);
  
      _serviceExtensions.add(name);
  