runServiceAdapter method

Implementation

Future<void> runServiceAdapter(
  RepositoryScope scope,
  ServiceAdapter adapter,
) async {
  final entity = _scopes[scope];
  if (entity == null) throw _entityNotFound;
  _scopes[scope] = await adapter.query(entity);
  scope.subscription(entity);
}