Skip to content

Instantly share code, notes, and snippets.

@michelp
Created August 26, 2012 18:04
Show Gist options
  • Save michelp/3482166 to your computer and use it in GitHub Desktop.
Save michelp/3482166 to your computer and use it in GitHub Desktop.
def _run(self):
try:
gevent.joinall([gevent.spawn(j) for j in
(self._read_sub, self._read_router, self._send_pub)])
finally:
self.context.term()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment