def terminate(self):
        if self.is_alive() and self._loop:
            self._loop.call_soon_threadsafe(self._loop.stop)
Invoke the stop on the event loop method.
dataset/ETHPy150Open quantmind/pulsar/pulsar/async/threads.py/Thread.terminate