def close_channel(self, channel: str) -> None:
    """Closes the channel for the given name.

    Args:
      channel: The channel to close. If the channel doesn't exist yet, it will
        be created.
    """
    with self._channels_lock:
      self._get_channel_or_create(channel).on_completed()
      del self._channels[channel]
Closes the channel for the given name.

    Args:
      channel: The channel to close. If the channel doesn't exist yet, it will
        be created.
    
concordia/utils/deprecated/measurements.py