dlecocq / nsq-py

Hacking on Python NSQ Bindings
MIT License
44 stars 16 forks source link

Check for Reconnection #10

Closed dlecocq closed 10 years ago

dlecocq commented 10 years ago

This provides a context manager that spawns (and stops and joins) a thread that periodically checks the connections associated with a client. The gevent implementation uses a coroutine, since it monkey-patches threading.