def stop(self, timeout=None):
        """ send stop signal and wait signal accepted 
        
        Raises:
            TimeoutError
        """
        self.__stop.set()
        if not self.__done.wait(timeout):
            raise TimeoutError("wait for stopped timeout", timeout)
 send stop signal and wait signal accepted 
        
        Raises:
            TimeoutError
        
adbutils/_utils.py