LegacyReader
– backwards compatible Reader¶
-
class
nsq.
LegacyReader
(*args, **kwargs)¶ In
v0.5.0
we dropped support for “tasks” in thensq.Reader
API in favor of a single message handler.LegacyReader
is a backwards compatible API for clients interacting withv0.5.0+
that want to continue to use “tasks”.Usage:
from nsq import LegacyReader as Reader