def METHOD_NAME(self):
    """
    Basic implementation of the thread target
    This loops until either an internal quit flag is set, or when
    the stop_check function evaluates to True.
    """
    while True:
        if self._internal_quit:
            break
        if self.data_available():
            self.write(self.read())
        if self._stop_check():
            break