def stop(self) -> None:
if not self._running:<EOL><INDENT>return<EOL><DEDENT>self._running = False<EOL>self._receiving_queue.put_nowait((TRANSPARENT_EVENT, None))<EOL>self._internal_queue.put_nowait((TRANSPARENT_EVENT, None))<EOL>
Stop the :class:`~lahja.endpoint.Endpoint` from receiving further events.