def terminate(self):
    'Terminate the Pea.\n        This method calls :meth:`terminate` in :class:`threading.Thread` or :class:`multiprocesssing.Process`.\n        '
    if hasattr(self.worker, 'terminate'):
        self.worker.terminate()
Terminate the Pea.
This method calls :meth:`terminate` in :class:`threading.Thread` or :class:`multiprocesssing.Process`.
def terminate(self):
    'Terminate the Pea.\n        This method calls :meth:`terminate` in :class:`threading.Thread` or :class:`multiprocesssing.Process`.\n        '
    if hasattr(self.worker, 'terminate'):
        self.worker.terminate()