def clear(self):
    '\n        Clear all the metrics.\n        '
    if self._worker:
        self._buffer.clear()
    elif (self._threadsafe and (not self._worker)):
        for _ in self._drain_queue():
            pass
    if self._data:
        self._data.clear()
Clear all the metrics.
def clear(self):
    '\n        \n        '
    if self._worker:
        self._buffer.clear()
    elif (self._threadsafe and (not self._worker)):
        for _ in self._drain_queue():
            pass
    if self._data:
        self._data.clear()