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