removeTags method

Future<void> removeTags(
  1. Iterable<T> elements,
  2. Iterable<Object?> tags
)

Remove tags from objects in the registry.

After this operation, the elements will not be associated to the tags. It doesn't matter whether the elements were associated with the tags before or not.

Fails if any of the elements are not in the registry.

Implementation

Future<void> removeTags(Iterable<T> elements, Iterable<Object?> tags) {
  var ids = elements.map(_getId).toList(growable: false);
  tags = tags.toList(growable: false);
  var completer = Completer<void>();
  var port = singleCompletePort(completer, timeout: _timeout);
  _commandPort.send(list4(_removeTagsValue, ids, tags, port));
  return completer.future;
}