code: def kill(self, sig):
          '''Invoke the stop on the event loop method.'''
          if self.is_alive() and self._loop:
              self._loop.call_soon_threadsafe(self._loop.stopf kill(self, sig):
          '''Invoke the stop on the event loop method.'''
          if self.is_alive() and self._loop:
              self._loop.call_soon_threadsafe(self._loop.stop)
docs: Invoke the stop on the event loop method.