(self)
Mark the manager as terminated and
        releases its resources.
Mark the manager as terminated and
        releases its resources.
Mark the manager as terminated and releases its resources .
def stop(self):
        """
        Mark the manager as terminated and
        releases its resources.
        """
        self.running = False
        with self.lock:
            self.websockets.clear()
            self.poller.release()
def stop ( self ) : self . running = False with self . lock : self . websockets . clear ( ) self . poller . release ( )